Skip to content

[pull] develop from getsentry:develop - #110

Merged
pull[bot] merged 3 commits into
TheDegenerateDev5150:developfrom
getsentry:develop
Aug 13, 2026
Merged

pull[bot] merged 3 commits into
TheDegenerateDev5150:developfrom
getsentry:develop

Conversation

@pull

@pull pull Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

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 : )

mydea and others added 3 commits August 13, 2026 19:12
…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
@pull pull Bot locked and limited conversation to collaborators Aug 13, 2026
@pull pull Bot added the ⤵️ pull label Aug 13, 2026
@pull
pull Bot merged commit f73bf21 into TheDegenerateDev5150:develop Aug 13, 2026
2 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants