Skip to content

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

Merged
sfanahata merged 5 commits into
masterfrom
junior/span-metrics-application-metrics-banner
Jun 11, 2026
Merged

docs(span-metrics): add Application Metrics discovery banner to span metrics pages#18023
sfanahata merged 5 commits into
masterfrom
junior/span-metrics-application-metrics-banner

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

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

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

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>

@sfanahata sfanahata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@sfanahata sfanahata merged commit c41d1fb into master Jun 11, 2026
21 checks passed
@sfanahata sfanahata deleted the junior/span-metrics-application-metrics-banner branch June 11, 2026 22:05
inventarSarah pushed a commit that referenced this pull request Jun 15, 2026
…metrics pages (#18023)

## What

Adds a discovery banner to the top of all span metrics documentation
pages pointing users (and LLM crawlers) toward [Application
Metrics](/product/explore/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](https://sentry.sentry.io/traces/?project=4510944073809921&query=gen_ai.conversation.id%3A%22slack%3AC09H3UT3X2Q%3A1780506432.490519%22)

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Sergiy Dybskiy <sergiy.dybskiy@sentry.io>
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.

1 participant