Repository navigation
Telemetry: wait for the AWS WAF token before each export - #4817
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4817/ Sample changed pages: |
…ut (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 12, 2026
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.
Why
/docs/_api/v1/o/{t,l,m}accept unauthenticated writes and are being scanned.aws-waf-tokencookie first, or its exports get a 202 challenge that the exporter counts as success.Part of elastic/docs-eng-team#1192
What
waf_integration_urlis set, each OTLP export waits for the AWS WAF token. This is the same switch page feedback uses. Without the URL, nothing changes.Assets/waf.ts), so the script loads once per page.Notes
headersfunction. Web components wait for telemetry setup, so holding the SDK start would delay them by up to 5 seconds.exportConfig.headersas an object, so the function needs a cast. The OTLP exporters it uses (0.221) accept a function and await it before each export. An EDOT upgrade that copiesheaderswould silently drop the wait. A follow-up EDOT change can widen the type./docs/_api/v1/o/toapi_token_required_path_prefixesonce this is live. Edge and demo already havewaf_integration_url. Staging and prod need it, andapi_token_domains, first.🤖 Generated with Claude Code