The name of the distribution metric.
The value to record in the distribution.
Optional
Options for capturing the metric.
Sentry.metrics.distribution('task.duration', 500, { unit: 'millisecond', attributes: { task: 'data-processing', priority: 'high' }}); Copy
Sentry.metrics.distribution('task.duration', 500, { unit: 'millisecond', attributes: { task: 'data-processing', priority: 'high' }});
Sentry.metrics.distribution('batch.size', 100, { attributes: { processor: 'batch-1', type: 'async' }}); Copy
Sentry.metrics.distribution('batch.size', 100, { attributes: { processor: 'batch-1', type: 'async' }});
The name of the distribution metric.