Repository navigation
[pull] develop from getsentry:develop - #110
Merged
Merged
Conversation
…23358) Renames the orchestrion channel-integration factory `kafkajsIntegration` to `kafkaIntegration` in `@sentry/server-utils`, and updates every consumer (`@sentry/node`, `@sentry/deno`) accordingly. _Reasoning_: `kafkaIntegration` is the public casing that `@sentry/node` already exposed by aliasing the server-utils export (`kafkajsIntegration as kafkaIntegration`). Making the canonical export match that casing lets node drop the alias and keeps the factory name consistent across SDKs. `@sentry/deno` previously re-exported the `kafkajsIntegration` name, so its public export changes to `kafkaIntegration` to match. Split out of a larger `@sentry/server-utils` cleanup branch as an isolated, mechanical rename. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
No longer necessary to handle in bun specifically - we just add the node auto instrumentation and be done with it, they will noop without orchestrion but nothing changes there. This also allows us to drop this export from server-utils.
Adds an opt-in `bfcacheIntegration` that reports back/forward-cache health as metrics: a hit/miss navigation counter, the (Chromium-only) `notRestoredReasons` behind a miss, and the fallback reload cost on a miss. Metrics are the source of truth rather than spans, because a bfcache hit restores an existing page and never creates a pageload span, so span-only instrumentation would drop every successful restore from the dataset. ### New Metrics Three metrics, all under the `browser.bfcache.*` namespace. | metric | type | emitted | key attributes | answers | | --- | --- | --- | --- | --- | | `browser.bfcache.navigation` | counter | 1 per back/forward navigation | `browser.bfcache.outcome` (`hit`/`miss`), `browser.bfcache.not_restored_reason_count` (miss only) | hit/miss **rate** (total = ungrouped sum; hit% = `outcome:hit` / total) | | `browser.bfcache.not_restored` | counter | 1 per reason (a miss can emit several) | `browser.bfcache.reason` (verbatim), `browser.bfcache.frame` (`top`/`child`) | **which** blockers, and **where** (top document vs a child/embed) | | `browser.bfcache.reload.duration` | distribution (ms) | 1 per miss | — | the **cost** of a miss | Conventions PR is here getsentry/sentry-conventions#513 An example of a dashboard that uses bfcache metrics would look like this: <img width="1994" height="1748" alt="CleanShot 2026-07-20 at 14 12 41@2x" src="https://github.com/user-attachments/assets/b57a93c3-e6b0-4472-9d8b-36d60f6a30c1" /> We can pre-ship a sentry-provided dashboard to onboard users to this feature. ### Resources - https://github.com/WICG/bfcache-not-restored-reason/blob/main/NotRestoredReason.md - https://developer.chrome.com/docs/web-platform/bfcache-notrestoredreasons - https://html.spec.whatwg.org/multipage/nav-history-apis.html#notrestoredreasondetails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )