Skip to content

feat(tracing): send VeADK default headers with OTLP exports - #1234

Merged
yaozheng-fang merged 1 commit into
volcengine:mainfrom
evanlowe:chore/inspect-observability-dual-write
Nov 25, 2026
Merged

yaozheng-fang merged 1 commit into
volcengine:mainfrom
evanlowe:chore/inspect-observability-dual-write

Conversation

@evanlowe

@evanlowe evanlowe commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What changes

VeADK-managed OTLP exporters now send the five default model request headers with APMPlus traces and metrics and with CozeLoop and TLS traces. Collectors can identify the SDK and correlate telemetry with a runtime that sets MODEL_AGENT_CLIENT_REQ_ID.

  • Model and telemetry clients share the definition of veadk-source, veadk-version, User-Agent, X-Client-Request-Id, and x-is-encrypted.
  • Exporters merge headers case-insensitively. Explicit exporter headers override defaults, and platform credentials and routing fields take precedence. TLS now forwards the merged headers to its HTTP transport.
  • APMPlus sends lowercase gRPC metadata and appends the VeADK identifier to the transport User-Agent. Per-agent model overrides stay scoped to model calls. Host-managed exporters retain their host configuration.

Verification

Tested on 2026-11-25 against dc728947.

  • Targeted tracing, metrics, configuration and ADK integration tests passed (72). The three new regression cases failed on the original implementation.
  • Local OTLP receivers observed all five headers on each of the four export paths and verified platform-specific headers with synthetic credentials. Cloud ingestion was not exercised.
  • Repository-wide pre-commit passed, including Ruff, dependency policy and both secret scanners.
  • Bilingual documentation passed types:check and build:static.
  • The dev-only regression run had 19 failures and two collection errors. After installing the declared codex, sandbox and extensions extras, all 19 cases and all seven tests in the two affected modules passed. The complete two-worker regression then passed on the submitted changes (9,496 passed, 137 skipped, 4 expected failures, 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'.

@yaozheng-fang
yaozheng-fang merged commit 0566e60 into volcengine:main Nov 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants