Skip to content

Stop attaching euid to browser OpenTelemetry records - #4149

Merged
reakaleek merged 3 commits into
mainfrom
chore/omit-euid-from-otel
Sep 21, 2026
Merged

reakaleek merged 3 commits into
mainfrom
chore/omit-euid-from-otel

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Browser OpenTelemetry no longer copies the euid cookie onto client spans and logs.

Affects: Site UI

Prompt summary: Open a follow-up that stops the browser from attaching euid to telemetry. Leave the API path as it is. Keep the public description short and factual.

Why

The browser currently copies the euid cookie onto every client span and log. Search and other UI events emit many of those records. Those records do not need the cookie.

What

Browser telemetry

Client spans and logs no longer receive user.euid from the euid cookie. initializeOtel no longer reads document.cookie.

API telemetry

Server-side OpenTelemetry is unchanged. This PR does not touch that path.

Tests

A Jest case checks that initializeOtel does not read document.cookie.

Verify

cd src/Elastic.Documentation.Site
npm run test -- --testPathPatterns=instrumentation.test

Out of scope: API OpenTelemetry enrichment.

Made with Cursor

The site copied that cookie onto every client span and log. Those records do not need it.

Co-Authored-By: Cursor Grok 4.6 <noreply@anthropic.com>
@reakaleek
reakaleek requested a review from a team as a code owner September 18, 2026 10:52
@reakaleek
reakaleek requested a review from akira28 September 18, 2026 10:52
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4149/

reakaleek and others added 2 commits September 21, 2026 11:27
The cookie assertion can pass without initializing if a Synthetics userAgent spy leaks into the next test.

Co-Authored-By: Cursor Grok 4.6 <noreply@anthropic.com>
@reakaleek
reakaleek merged commit 83445e4 into main Sep 21, 2026
32 checks passed
@reakaleek
reakaleek deleted the chore/omit-euid-from-otel branch September 21, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants