Metrics (Trace Connected) For JavaScript #18055
AbhiPrasad
started this conversation in
Features / New SDKs (Integrations) / Ideas
Replies: 1 comment 2 replies
-
|
Hi folks, I've just set up metrics this morning in the app I currently operate, and they're working beautifully. Two questions for you:
Both of these would really complete the package for us, in terms of using Sentry as our home base for observing our app in production. Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 10.25.0 of the JavaScript SDK or higher.
Once the SDK is initialized, you can send metrics using the
Sentry.metricsAPIs.The
metricsnamespace exposes three methods that you can use to capture different types of metric information:count,gauge, anddistribution.You can also pass additional attributes directly to
count,gauge, anddistributionvia theattributesobject.You can also set a unit on the metric
Beta Was this translation helpful? Give feedback.
All reactions