v0.14.0#167
Merged
Merged
Conversation
#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.
Overall package sizeSelf size: 30.1 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------|🤖 This report was automatically generated by heaviest-objects-in-the-universe |
ekump
approved these changes
Jul 9, 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.
Release v0.14.0.
Included since v0.13.0
Datadog-Container-ID/Datadog-Entity-ID/Datadog-External-Env. libdatadog's own detection is#[cfg(unix)](inert on wasm32) andDD_EXTERNAL_ENVis unreachable from wasm, so the Node transport detects these (/proc+process.env, mirroring dd-trace-jsdocker.js/ libdd-commoncompute_entity_id) and rewrites the rendered request head to carry them.Version
0.13.0→0.14.0(minor; new feature).Datadog-Entity-ID(the End-to-end bucket on feat(native-spans): native span pipeline via libdatadog wasm dd-trace-js#9139).