Skip to content
Application Metrics

Measure, visualize, and alert on what matters to you

Send counters, gauges, and distributions from your code to track application health signals like email.sent, checkout.failed, or queue.depth and jump straight to the trace when something spikes. Set attributes that matter without worrying about cardinality.

Attach any context you need to your metrics

Tag every measurement with the attributes you need — customer_id, route, region, plan, build SHA. Don't worry about cardinality, you pay based on volume, not unique combinations. Emit raw measurements, then ask new questions later, without redeploying.

  • Counters, gauges, and distributions, with the tags you need

  • Slice and group after the fact, like grouping checkout.failed by customer_id

  • Filter with structured queries like route:"/checkout" AND region:"eu-west"

  • Alert on any structured dimension

Application Metrics Docs

From metric spike straight to the trace behind it

Traditional metrics tools tell you if something changed. Trace-connected metrics tell you why. In Sentry, you can jump from a spike directly to the exact trace, spans, logs, and errors associated with it.

  • Drill from a p95 outlier into the slow span that produced it

  • Jump from a counter increment to the issue and stack trace behind it

  • Correlate metric movements with releases, feature flags, and deploys automatically

Trace Connected Debugging

Turn any metric query into a dashboard

Easily turn your most important questions into alerts and dashboards:

  • Any metric query can be turned into a Monitor so you get notified when its behavior changes.

  • Pin any metric query as a widget on a Dashboard for longer-term tracking

  • Frequently-used metric queries can be saved and re-opened

Metrics Dashboard Docs

Combine metrics into new ratios and scores

Calculate error rates and conversion ratios from the metrics you already emit.

  • Aggregate by sum, avg, count, or p50/p95/p99

  • Combine up to 26 queries with equations like A / B for ratios, or (A + (B / 2)) / C for Apdex

  • Use derived series in dashboards and alerts

Metric Equations in Sentry

FeaturesFeatures

A bandaged hand giving a thumbs-up over a squashed bug and performance charts
Equations

Equations

Combine metrics with arithmetic to derive the number you actually care about — ratios, deltas, and composite scores like Apdex. Reference up to 26 metric queries (A, B, C…) in a single equation: A / B for a failure ratio, A - B against a baseline, or (A + (B / 2)) / C for a satisfaction score.

Metric-Based Alerts

Alert on any structured dimension. Route to the on-call who owns that surface.

Metric Dashboards

Compose error rates, latency, and throughput next to the issues and traces they describe.

With Sentry, we can track what normal looks like across more of our application. Upper and lower bounds and anomaly detection help us spot unexpected changes earlier, while our on-call dashboard helps us quickly narrow down where the problem might be.

Sam JonesDirector of Engineering, Hospitable

Application Metrics FAQs

What are application metrics?

Counters, gauges, and distributions you emit from your code to track the application's health, like email.sent or queue.depth. Attributes like customer_id or region can be added without worrying about cardinality.

How can I get started with Application Metrics?

If you already have the Sentry SDK installed, you're a few lines away from emitting metrics. Call Sentry.metrics.count(), Sentry.metrics.gauge(), or Sentry.metrics.distribution() directly from your code. Release, environment, and SDK context are attached automatically. You can also use the Sentry Agent Plugin to help get started with metrics.

How much do Application Metrics cost?

All Sentry plans come with 5 GB. Additional usage beyond that costs $0.50/GB. Usage will be applied to your pay-as-you-go budget. Learn more about pricing.

Can I use OTel with Sentry Application Metrics?

Not today. OTLP metrics are pre-aggregated before they reach us, which strips out the high-cardinality detail that makes our query model useful. If you need OTel-style infra metrics, pair Sentry with your existing metrics backend. If you'd like us to support metrics from OTel, let us know via the User Feedback widget in Sentry (or reach out via email).

green portal bursting through a browser window
old computer monitor with a jagged grinning face
laptop spaceship flying through warning signs and debris

Built to be secure, designed to not get in your way

Security and compliance aren't just checkboxes—they're built into how we run Sentry. We use industry-standard tech and practices to keep your data safe, and we stay out of your way while doing it.

Skip to the part where you fix it.