Repository navigation
Update the EDOT browser SDK to 0.5.0 - #4862
Merged
Merged
Conversation
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]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4862/ |
reakaleek
approved these changes
Nov 16, 2026
reakaleek
reviewed
Nov 16, 2026
| exportConfig: { | ||
| tracesUrl: 'http://localhost/t', | ||
| logsUrl: 'http://localhost/l', | ||
| metricsUrl: 'http://localhost/m', |
Member
There was a problem hiding this comment.
Should we also remove the metrics endpoint from the infra?
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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-browseris pinned to0.5.0(it was0.5.0-canary-default-20261109-d8e41fb). The lockfile also moves@opentelemetry/browser-instrumentationfrom 0.8.2 to 0.11.0 and@opentelemetry/browser-sdkfrom 0.3.0 to 0.8.0, which the SDK depends on, and removes 29 nested copies.Metrics option removed
exportConfig.metricsUrlis gone from the SDK's types, sootlpSignalUrls()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_idandbrowser.web_vital.navigation_urlare 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 frommain.What changes in the data
url.templateis no longer emitted. It was merged into the SDK'scanarybranch (upstream PR Refactor build scripts and workflows for consistency #130), notmain, 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 carryurl.full, not a route template.session.iduntil the next interaction. Session-based counts will change./v1/o/mposts 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,
ignoreFetchUrlsfor other URLs, and theenabledoption removal do not affect us, because we use none of them.Verify
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-frontendrows on edge should show noattributes.url.template, andbrowser.web_vital.navigation_idon web-vital events once the edge collector has the new allowlist.🤖 Generated with Claude Code