Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Sentry 5 min read Announcement mediumAdept

Measuring the back/forward cache with Application Metrics

Sentry's new opt-in bfcacheMetricsIntegration (JavaScript SDK v11) turns the browser's back/forward cache decisions into application metrics, closing a blind spot where cache hits leave no page-load telemetry. Built on the pageshow event and the notRestoredReasons API, it emits three metrics: a hit/miss counter per back/forward navigation, a Chromium-only counter of not-restored reasons with the frame that caused them (e.g. unload listeners, websockets, Cache-Control: no-store), and a distribution of fallback reload duration that measures what each miss cost the user. Because eligibility can regress without code changes, the recommendation is to track hit rate continuously and break misses down by route, release and browser.

Assumes: browser navigation lifecycleweb performance metrics

Related posts

  • Measuring soft navigation web vitals

    Sentry mediumAdept

    Chrome (Chromium 151+) now reports web vitals for soft navigations, and Sentry's JavaScript SDK v11 attaches per-navigation LCP, CLS and INP to SPA `navigation` spans by default, using span streaming because vitals finalize after the span ends. Measuring from the triggering interaction to the main content paint gives user-facing durations that idle-based span ends miss: in Sentry's app, page-load LCP is 2.85s at p75 while the pageload span ends at 6.77s. Page-load CLS/INP are cut off at the first soft navigation, and pages users only reach by clicking finally get data. Soft navigations made up about 62% of page views and had a p75 LCP of 1.17s versus 2.48s overall, so mixed scores will look better after upgrading. Alerts should be filtered on the new `browser.navigation.type` attribute.

  • Application Metrics caught my broken size estimator

    Sentry mediumAdept

    Instrumenting Cliparr Convert, an in-browser video converter built on MediaBunny/WebCodecs, with Sentry Application Metrics exposed an AI-written size estimator that scaled source size by resolution and produced files up to 83% larger than predicted. Replacing it with a plain bitrate × duration formula brought most transcodes within about 5%. Recording the actual/estimated size ratio as a distribution tagged by estimator basis, format and quality also showed that copy mode over-estimates by about 16% and GIFs by about 9%. Counters cover the conversion and PWA install funnels, and metrics are preferred over traces or logs because they are unsampled and explicitly mark a KPI.

  • MotionMark 1.2

    WebKit mediumAdept

    MotionMark 1.2 is a small reliability-focused update to the browser graphics benchmark. Its largest change is removing the Focus subtest. In engines with an asynchronous compositor like WebKit, that subtest measured how fast work descriptions reach the compositor rather than how fast the compositor executes them, and its indirect, scheduler-mediated backpressure caused large score variance. The harness also adds longer warm-up between tests, requires at least 30 frames between tests and 9 frames before any complexity-ramping decision, and discards outlier frame times, making scores far more reproducible across machines.

  • Sentry's Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates

    Sentry mediumAdept

    Sentry's Flutter SDK 10.0 switches tracing to a streaming model that sends finished spans in batches instead of waiting for the whole transaction, with `Sentry.startSpan` for custom instrumentation and an opt-out via `SentryTraceLifecycle.static`. Unhandled Flutter errors that don't kill the app no longer mark sessions as crashed (they end as `unhandled`), making crash-free rates more accurate. App startup becomes its own `app.start` root trace on Android and iOS, with an optional extension API. The release also removes the enable flags for logs and metrics, captures Dio failures that have no HTTP response, masks Flutter `SensitiveContent` in Replay, drops profiling and raises minimums to Dart 3.12 and Flutter 3.44, with sampling and filter rules needing review during upgrade.

  • The Importance of Using a Composite Metric to Measure Performance

    Indeed Engineering mediumAdept

    Single client-side performance metrics such as Indeed's custom JSV Delay, domContentLoadEnd and LCP each miss parts of the user's perceived page load, and optimizing one often degrades another. Timeline scenarios show pages with identical total load time feeling very different depending on when content appears and when it becomes interactive. Indeed instead uses a composite Lighthouse score that weights LCP, TBT and CLS most heavily, with FCP and Speed Index contributing less, and treats scores of 90 or above as fast. TTI alone is rejected as an estimated, deprecated signal that is only useful as corroboration, and the recommendation is to keep a composite metric while revising its components as technology changes.

The quest for software engineering knowledge.

Look:
Layout: