Repository navigation
fix(tracing): include VeADK headers in APMPlus span tags - #1235
Merged
yaozheng-fang merged 1 commit intoNov 27, 2026
Merged
Conversation
yaozheng-fang
approved these changes
Nov 26, 2026
yaozheng-fang
approved these changes
Nov 27, 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
#1234 added VeADK headers to OTLP requests. A live agent run on the merged main branch showed that APMPlus indexed none of the five header values as span tags. APMPlus queries read attributes from each span payload.
Changes
The VeADK APMPlus trace exporter now writes the effective values of
veadk-source,veadk-version,User-Agent,X-Client-Request-Id, andx-is-encryptedinto each outgoing span. Case-insensitive exporter overrides are honored, and each tag uses its documented spelling. The explicit allowlist keeps authentication and arbitrary transport headers out of this projection. The exporter modifies its own serialized payload so other exporters can consume the original spans. Public configuration and Python signatures are unchanged.Verification
ListSpan. All five spans had all five exact expected tag values (25/25). A second query filtered only by the synthetic request ID and returned the same five spans._translate_datahook, which is exercised by the serialized-payload test.Verified on November 25, 2026.
Submitted commit verification
Built the wheel from commit
3eb3eb70, ran a second real agent from that wheel, and verified the commit-derived version in APMPlus. All 25 tag values matched and the request-ID-only query returned the same five spans.The full two-worker regression passed with 9,497 passed, 137 skipped, 4 expected failures, and 6 passing subtests. Command:
uv run --extra dev --extra codex --extra sandbox --extra extensions pytest -n 2 -m 'not codex_smoke and not piagent_smoke'.