Metrics (Trace Connected) in Beta #102275
Dhrumil-Sentry
announced in
Launch Feedback
Replies: 0 comments
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.
-
We’re 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
If you'd like access for JavaScript or Python please comment with your org slug below or drop us a note at feedback-metrics@sentry.io
Why we built this
Metrics in most tools stop at charts — they show that something changed, but not why. When a
checkout.failedcounter spikes, you’re forced to switch tools and manually line up logs or traces to find the cause.With Sentry, every metric event carries a
trace_id.That means you can:
So instead of “metric alert → guesswork,” debugging becomes a single flow: Metric spike → open a sample → trace waterfall → root cause.
How the UX works
Aggregates tab shows trends and totals across any attributes (e.g. sum(metrics_value) grouped by email_type).
Samples tab shows individual metric events with direct links to their trace — so you can jump straight into the logs, spans, and errors that occurred at the same moment. Allowing you to drill into any spikes or dips in your metrics and find relevant errors,traces or logs to look at.
How to get started
If you'd like access please comment with your org slug below or drop us a note at feedback-metrics@sentry.io
Python
You need to be on a min version of 2.43.0 of our Python SDKs
More details: getsentry/sentry-python#5042
JavaScript
You need to be on a min version of 10.20.0 for our JavaScript SDKs
Each metric event includes:
name,kind,value,attributestrace_id,span_id→ used to link with other telemetryunit,byte_sizeMore details: getsentry/sentry-javascript#18055
When (and why) to use Metrics
Metrics are best for application and code based health signals — numeric indicators of whether your application logic is behaving as expected.
You should reach for metrics when you want to quantify what your code is doing
Examples:
email.sent/email.failedjob.processed/job.retriedcheckout.started/checkout.failedpayment.declined/refund.issuedqueue.depth/pool.in_usesearch.zero_resultsFeedback
We’re working on shipping Alerts, Saved Queries and dashboard widget building support very soon
We’d love to hear your feedback about the following
Beta Was this translation helpful? Give feedback.
All reactions