Skip to content

v0.14.0#167

Merged
bengl merged 2 commits into
v0.xfrom
bengl/v0.14.0-proposal
Jul 9, 2026
Merged

v0.14.0#167
bengl merged 2 commits into
v0.xfrom
bengl/v0.14.0-proposal

Conversation

@bengl

@bengl bengl commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Release v0.14.0.

Included since v0.13.0

  • feat(capabilities): inject container-id/entity-id/external-env headers (feat(capabilities): inject container-id/entity-id/external-env headers #166) — the native (wasm) exporter now sends Datadog-Container-ID / Datadog-Entity-ID / Datadog-External-Env. libdatadog's own detection is #[cfg(unix)] (inert on wasm32) and DD_EXTERNAL_ENV is unreachable from wasm, so the Node transport detects these (/proc + process.env, mirroring dd-trace-js docker.js / libdd-common compute_entity_id) and rewrites the rendered request head to carry them.

Version

0.13.00.14.0 (minor; new feature).

bengl added 2 commits July 9, 2026 15:41
#166)

libdatadog's automatic entity detection (libdd-common's entity_id module) is
gated #[cfg(unix)] and therefore inert on the wasm32 target, and DD_EXTERNAL_ENV
is unreachable from wasm, so the native exporter never sent Datadog-Container-ID
/ Datadog-Entity-ID / Datadog-External-Env. Node can read /proc and process.env,
so detect them in the HTTP transport and rewrite the Rust-rendered request head
to carry them — the headers native libdatadog adds via set_standard_headers.

Detection mirrors dd-trace-js's exporters/common/docker.js (the proven legacy
exporter path) and libdd-common's compute_entity_id (ci-<container_id> else
in-<cgroup_inode>). The empty datadog-container-id libdatadog emits on wasm is
replaced rather than duplicated, and external-env is rejected if it carries
CR/LF or non-ASCII to avoid header injection.
@bengl bengl requested review from a team as code owners July 9, 2026 19:42
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Overall package size

Self size: 30.1 MB
Deduped: 30.1 MB
No deduping: 30.1 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------|

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@bengl bengl merged commit 201f977 into v0.x Jul 9, 2026
46 checks passed
@bengl bengl deleted the bengl/v0.14.0-proposal branch July 9, 2026 20:38
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