The name of the counter metric.
Optional
The value to increment by (defaults to 1).
Options for capturing the metric.
Sentry.metrics.count('api.requests', 1, { attributes: { endpoint: '/api/users', method: 'GET', status: 200 }}); Copy
Sentry.metrics.count('api.requests', 1, { attributes: { endpoint: '/api/users', method: 'GET', status: 200 }});
Sentry.metrics.count('items.processed', 5, { attributes: { processor: 'batch-processor', queue: 'high-priority' }}); Copy
Sentry.metrics.count('items.processed', 5, { attributes: { processor: 'batch-processor', queue: 'high-priority' }});
The name of the counter metric.