Skip to content

docs(js): Update metrics docs for v11 - #19396

Merged
chargome merged 1 commit into
js-v11-docsfrom
update-metrics-docs-v11
Sep 22, 2026
Merged

chargome merged 1 commit into
js-v11-docsfrom
update-metrics-docs-v11

Conversation

@chargome

@chargome chargome commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Removes enableMetrics from the JS metrics docs and documents the *.logs.metrics CDN bundle requirement for v11. Closes https://linear.app/getsentry/issue/SDK-1477/update-metrics-docs-for-v11

The enableMetrics option was removed in v11. Metrics are captured whenever
Sentry.metrics.* is called, and beforeSendMetric is the top-level option now.
Metrics also left the base CDN bundle and ship only in the *.logs.metrics
bundles, so document that and drop the enableMetrics references.

Refs SDK-1477
@chargome chargome self-assigned this Sep 14, 2026
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 14, 2026 11:25am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Sep 14, 2026 11:25am UTC

Request Review

@linear-code

linear-code Bot commented Sep 14, 2026

Copy link
Copy Markdown

SDK-1477

@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Sep 14, 2026
@chargome
chargome requested a review from JPeer264 September 14, 2026 11:18
Metrics are only captured when you call `Sentry.metrics.*`, so there is no option to turn them on or off. To stop sending metrics without removing those calls, return `null` from `beforeSendMetric`.

<Alert>
On SDK versions below `11.0.0`, set `enableMetrics: false` in your

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

q: Wouldn't beforeSendMetric: () => null also work in v10?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah but there is the flag still

@chargome
chargome changed the base branch from master to js-v11-docs September 22, 2026 13:24
@chargome
chargome marked this pull request as ready for review September 22, 2026 13:24
@github-actions

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

@chargome
chargome merged commit 83767bd into js-v11-docs Sep 22, 2026
27 of 28 checks passed
@chargome
chargome deleted the update-metrics-docs-v11 branch September 22, 2026 13:25

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 5fd5ea6f Deployed Sep 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js-v11-docs Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants