Skip to content

Update the EDOT browser SDK to 0.5.0 - #4862

Merged
akira28 merged 1 commit into
mainfrom
chore/edot-browser-0.5.0
Nov 16, 2026
Merged

akira28 merged 1 commit into
mainfrom
chore/edot-browser-0.5.0

Conversation

@akira28

@akira28 akira28 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Moves the frontend from the 0.5.0 canary of the EDOT browser SDK to the final 0.5.0 release, drops the metrics export option that release removes, and adds the two new web-vitals keys to the collector allowlist.

Affects: Frontend

Prompt summary: Update the frontend to the final EDOT browser SDK 0.5.0 now that it is released, and check what else in docs-builder has to change.

Why

The site pins a canary build of 0.5.0 from 2026-11-09. The final release differs from it: it has no metrics signal, it adds two web-vitals attributes the collector would drop, and it does not include the page-route stamping (url.template) that the canary carried.

What

SDK bump

@elastic/opentelemetry-browser is pinned to 0.5.0 (it was 0.5.0-canary-default-20261109-d8e41fb). The lockfile also moves @opentelemetry/browser-instrumentation from 0.8.2 to 0.11.0 and @opentelemetry/browser-sdk from 0.3.0 to 0.8.0, which the SDK depends on, and removes 29 nested copies.

Metrics option removed

exportConfig.metricsUrl is gone from the SDK's types, so otlpSignalUrls() and the two tests that mention it no longer pass it. Nothing in the frontend uses the metrics API. The SDK chunk in a production build is 136,916 bytes, against 202,848 bytes for the canary build currently on edge.

Allowlist

browser.web_vital.navigation_id and browser.web_vital.navigation_url are new web-vitals attributes in 0.5.0. The collectors drop any key that is not on the allowlist without an error, so both join the list. They reach Elasticsearch once the collectors render the allowlist of a docs-builder version that contains them: the staging and prod API deploys on their pin bumps, and edge from main.

What changes in the data

  • url.template is no longer emitted. It was merged into the SDK's canary branch (upstream PR Refactor build scripts and workflows for consistency #130), not main, and is not in 0.5.0; the upstream issue (Docs & Syntax guide updates #129) is still open. Nothing in docs-builder reads it. The key stays on the allowlist so cached pages from earlier builds keep working. New rows carry url.full, not a route template.
  • Sessions expire. A session ends after 30 minutes without interaction, or 4 hours in total, and telemetry sent after that has no session.id until the next interaction. Session-based counts will change.
  • No more /v1/o/m posts from new builds. The collectors' metrics pipeline and the WAF path stay for older cached frontends.

Out of scope: the SDK's new session API, ignoreFetchUrls for other URLs, and the enabled option removal do not affect us, because we use none of them.

Verify

mise run site:test

96 test files and 922 tests pass locally, and the type check, eslint and a production build are clean. After the edge deploy, a query for recent docs-frontend rows on edge should show no attributes.url.template, and browser.web_vital.navigation_id on web-vital events once the edge collector has the new allowlist.

🤖 Generated with Claude Code

Moves from the 0.5.0 canary to the final release. The SDK no longer has
a metrics signal, so the frontend stops passing exportConfig.metricsUrl
(the option is gone from the types) and the two web-vitals keys that 0.5.0
adds, browser.web_vital.navigation_id and navigation_url, join the
collector allowlist so they are not dropped.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@akira28
akira28 requested a review from a team as a code owner November 16, 2026 09:27
@akira28
akira28 requested a review from Mpdreamz November 16, 2026 09:27
@github-actions

Copy link
Copy Markdown
Contributor

exportConfig: {
tracesUrl: 'http://localhost/t',
logsUrl: 'http://localhost/l',
metricsUrl: 'http://localhost/m',

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.

Should we also remove the metrics endpoint from the infra?

@akira28
akira28 merged commit cd51c86 into main Nov 16, 2026
55 checks passed
@akira28
akira28 deleted the chore/edot-browser-0.5.0 branch November 16, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants