Skip to content

Emit web vitals as application metrics #26957

Backlog

Description

@logaretm

The SDK should emit browser.web_vital.* metrics directly. They are already being double-written by Relay.

Per the RFC, web vitals becomes an opt-in option and users need to select their telemetry choice:

  • a metrics integration (what the docs lead with).
  • a legacy span integration.

What the metrics path needs:

  • LCP, CLS, INP, FCP and TTFB as distribution metrics (millisecond, except CLS which uses none).
  • Names and attributes from the ATTRIBUTES.md reference, so native metrics match the ones Relay derives from spans.
  • sentry.origin set to auto.http.browser.{vital}, no sentry.metric.source.
  • Metric names added to sentry-conventions, which today only has the attributes.
  • Relay to compute the score for the metrics, tracked by Compute performance scores for web vital metrics sent by SDKs relay#6781

This could be released as an experimental integration for v11, and in v12 we can swap the telemetry types around, or we go straight for v12 with this.

Activity

  1. self-assigned this
    on Nov 27, 2026
  2. linear-code commented on Nov 27, 2026

    @linear-code
  3. added
    javascript
    on Nov 27, 2026
  4. added this to the 12.0.0 milestone on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BrowserMeta: Breakingjavascript

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions