You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry is introducing metrics that let you send counters, gauges, and distributions from your code to track things like email.sent, checkout.failed, or queue.depth — and pivot directly into the related traces, logs, and errors when something looks off.
TraceConnectedMetrics.mp4
Note
To get early access to the Sentry metrics product and to see how it works, see the announcement post.
To use the new Metric APIs to send metrics directly to Sentry, you'll have to upgrade to the latest pre-release 6.1.0-alpha.1 of the .NET SDK. The APIs are currently experimental.
Once the SDK is initialized, you can send metrics using the SentrySdk.Experimental.Metrics APIs.
The SentryTraceMetrics type exposes three method groups that you can use to capture different types of metric information: Counter, Gauge, and Distribution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sentry is introducing metrics that let you send counters, gauges, and distributions from your code to track things like
email.sent,checkout.failed, orqueue.depth— and pivot directly into the related traces, logs, and errors when something looks off.TraceConnectedMetrics.mp4
Note
To get early access to the Sentry metrics product and to see how it works, see the announcement post.
To use the new Metric APIs to send metrics directly to Sentry, you'll have to upgrade to the latest pre-release 6.1.0-alpha.1 of the .NET SDK. The APIs are currently experimental.
Once the SDK is initialized, you can send metrics using the
SentrySdk.Experimental.MetricsAPIs.The
SentryTraceMetricstype exposes three method groups that you can use to capture different types of metric information:Counter,Gauge, andDistribution.You can also pass additional attributes directly to
EmitCounter,EmitGauge, andEmitDistributionvia theattributesparameter.You can also set a unit on the metric (
GaugeandDistribution).Currently allowed numeric value types of metrics:
byte,short,int,longfloat,doubleCurrently allowed units (see also Units supported by Relay):
nanosecond,microsecond,millisecond,second,minute,hour,day,weekbit,byte,kilobyte,kibibyte,megabyte,mebibyte,gigabyte,gibibyte,terabyte,tebibyte,petabyte,pebibyte,exabyte,exbibyteratio,percentDocumentation
Related Issues
Beta Was this translation helpful? Give feedback.
All reactions