Skip to content

docs(span-metrics): add Application Metrics discovery banner to span metrics pages#18023

Draft
sentry-junior[bot] wants to merge 5 commits into
masterfrom
junior/span-metrics-application-metrics-banner
Draft

docs(span-metrics): add Application Metrics discovery banner to span metrics pages#18023
sentry-junior[bot] wants to merge 5 commits into
masterfrom
junior/span-metrics-application-metrics-banner

Conversation

@sentry-junior
Copy link
Copy Markdown
Contributor

@sentry-junior sentry-junior Bot commented Jun 3, 2026

What

Adds a discovery banner to the top of all span metrics documentation pages pointing users (and LLM crawlers) toward Application Metrics when they need standalone, sampling-independent counters/gauges/distributions.

Why

Span metrics and Application Metrics serve different use cases, but the two are easy to conflate. Users with heavy sampling who need historic aggregates may land on span metrics docs and not realize Application Metrics is the better fit. This banner surfaces that distinction right at the top.

Pages changed

  • docs/concepts/key-terms/tracing/span-metrics.mdx — concepts overview
  • docs/platforms/javascript/common/tracing/span-metrics/index.mdx — JS SDK
  • docs/platforms/python/tracing/span-metrics/index.mdx — Python SDK

Note: JS and Python are the only SDK platforms that currently have span-metrics pages. The concepts page is the shared landing for LLM/markdown consumers.

Banner copy (based on @shannon.anahata's proposal)

Looking for standalone counters, gauges, or distributions?

Span metrics are great for enriching your existing traces with custom data. If you need metrics that are independent of tracing — such as business event counters, success/failure rates, or aggregates that aren't affected by trace sampling — use Application Metrics instead.

Minor edit from original: added a closing em-dash before "use" for grammatical completeness.


Action taken on behalf of Sergiy Dybskiy.


View Session in Sentry

…metrics pages

Co-authored-by: Sergiy Dybskiy <sergiy.dybskiy@sentry.io>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jun 3, 2026 9:04pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jun 3, 2026 9:04pm

Request Review

…SDK pages

Co-authored-by: Sergiy Dybskiy <sergiy.dybskiy@sentry.io>
sentry-junior Bot and others added 2 commits June 3, 2026 20:32
…clude

Co-authored-by: Shannon Anahata <shannon.anahata@sentry.io>
…SDK custom instrumentation pages

Co-authored-by: Shannon Anahata <shannon.anahata@sentry.io>
…e API documented

Co-authored-by: Shannon Anahata <shannon.anahata@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants