The name of the gauge metric.
The current value of the gauge.
Optional
Options for capturing the metric.
Sentry.metrics.gauge('memory.usage', 1024, { unit: 'megabyte', attributes: { process: 'web-server', region: 'us-east-1' }}); Copy
Sentry.metrics.gauge('memory.usage', 1024, { unit: 'megabyte', attributes: { process: 'web-server', region: 'us-east-1' }});
Sentry.metrics.gauge('active.connections', 42, { attributes: { server: 'api-1', protocol: 'websocket' }}); Copy
Sentry.metrics.gauge('active.connections', 42, { attributes: { server: 'api-1', protocol: 'websocket' }});
The name of the gauge metric.