Skip to content

docs(js): Document bfcacheMetricsIntegration for v11 - #18936

Merged
logaretm merged 5 commits into
js-v11-docsfrom
awad/bfcache-metrics-integration
Sep 22, 2026
Merged

logaretm merged 5 commits into
js-v11-docsfrom
awad/bfcache-metrics-integration

Conversation

@logaretm

@logaretm logaretm commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

Adds documentation for the new bfcacheMetricsIntegration in the browser SDK, which tracks back/forward cache hit/miss rate and not-restored reasons as application metrics.

Depends on the SDK integration landing in a release getsentry/sentry-javascript#22397

@vercel

vercel Bot commented Aug 4, 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 22, 2026 2:30pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 22, 2026 2:30pm UTC

Request Review

@logaretm
logaretm force-pushed the awad/bfcache-metrics-integration branch from 407df91 to 00e5831 Compare September 17, 2026 18:52
@logaretm logaretm changed the title docs(js): Document bfcacheMetricsIntegration docs(js): Document bfcacheMetricsIntegration Sep 17, 2026
@logaretm logaretm changed the title docs(js): Document bfcacheMetricsIntegration docs(js): Document bfcacheMetricsIntegration for v11 Sep 17, 2026
@logaretm
logaretm requested a review from msonnb September 17, 2026 18:53

@msonnb msonnb left a comment •

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.

maybe we can run the $brand-guidelines skill over this? i think there are some cases of passive voice in there we generally want to avoid. content-wise it lgtm 👍

@andreiborza
andreiborza changed the base branch from master to js-v11-docs September 22, 2026 12:14
@andreiborza
andreiborza marked this pull request as ready for review September 22, 2026 13:17
@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Sep 22, 2026
@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.

@codeowner-assignment
codeowner-assignment Bot requested a review from a team September 22, 2026 13:17
Comment on lines +12 to +22
- javascript.express
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nitro
- javascript.nestjs
- javascript.deno
- javascript.cloudflare
- javascript.bun

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.

Bug: The bfcache.mdx frontmatter is missing javascript.eve in its notSupported list, incorrectly suggesting this browser-only integration is supported on a backend platform.
Severity: LOW

Suggested Fix

Add javascript.eve to the notSupported list in the frontmatter of bfcache.mdx. This will align it with other browser-only integrations and prevent the documentation from being shown to users of the Eve platform.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/javascript/common/configuration/integrations/bfcache.mdx#L5-L22

Potential issue: The `bfcache.mdx` file, which documents a browser-only integration, is
missing `javascript.eve` from its `notSupported` frontmatter list. Since
`javascript.eve` is a backend Node.js environment, this integration should not be shown
as supported. This inconsistency with other browser-only integrations
(`elementtiming.mdx`, `browserprofiling.mdx`, etc.) will cause the documentation to be
incorrectly rendered for Eve users who navigate directly to the page, misleading them
into thinking the feature is available in their environment.

Did we get this right? 👍 / 👎 to inform future reviews.

logaretm and others added 5 commits September 22, 2026 10:23
…cache.mdx

Co-authored-by: Martin Sonnberger <martin.sonnberger@sentry.io>
…cache.mdx

Co-authored-by: Martin Sonnberger <martin.sonnberger@sentry.io>
Review feedback asked for a brand guidelines pass over the page, which
flagged several passive constructions. Rewrite them so the browser or
the SDK is the subject, and match the "Sentry Application Metrics"
capitalization used on the other pages.
@logaretm
logaretm force-pushed the awad/bfcache-metrics-integration branch from 09a52d4 to e8d4cd3 Compare September 22, 2026 14:23
Comment on lines +12 to +22
- javascript.express
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nitro
- javascript.nestjs
- javascript.deno
- javascript.cloudflare
- javascript.bun

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.

Bug: The notSupported list in bfcache.mdx is incomplete, causing this browser-only integration documentation to be shown for unsupported server-side or non-browser platforms.
Severity: LOW

Suggested Fix

Either add the missing platforms (javascript.effect, javascript.elysia, javascript.firebase, javascript.mastra, javascript.wasm, javascript.electron) to the notSupported list. Alternatively, for a more maintainable solution, use notSupportedCategories: server-only as is done in elementtiming.mdx.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/javascript/common/configuration/integrations/bfcache.mdx#L5-L22

Potential issue: The `notSupported` list in the `bfcache.mdx` documentation file is
incomplete. It is missing several non-browser or server-side JavaScript platforms,
including `javascript.effect`, `javascript.elysia`, `javascript.firebase`,
`javascript.mastra`, `javascript.wasm`, and `javascript.electron`. Because these
platforms are not excluded, the documentation for the browser-only `bfcache` integration
is incorrectly displayed to users of these unsupported platforms. This can be misleading
and cause developers to attempt to configure a feature that is not available in their
environment. Other similar integration documents, like `webvitals.mdx`, correctly
exclude these platforms.

@logaretm
logaretm merged commit 0473b96 into js-v11-docs Sep 22, 2026
9 checks passed
@logaretm
logaretm deleted the awad/bfcache-metrics-integration branch September 22, 2026 14:33

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — e8d4cd35 Deployed Sep 22, 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