Repository navigation
fix(otel): encode structured trace attributes as MessagePack - #11416
florentinl wants to merge 1 commit into
Conversation
Overall package sizeSelf size: 9.57 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.5.3 | 131.25 kB | 531.9 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11416 +/- ##
==========================================
- Coverage 99.16% 99.16% -0.01%
==========================================
Files 1136 1136
Lines 188620 188616 -4
Branches 86 86
==========================================
- Hits 187036 187032 -4
Misses 1584 1584
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
BenchmarksBenchmark execution time: 2026-11-24 14:37:46 Comparing candidate commit f54710e in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2475 metrics, 12 unstable metrics.
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: f54710e | Docs | View more details | Give us feedback! |
What does this PR do?
Preserve the native
meta_structrepresentation when exporting traces over OTLP. Each entry keeps its key and is exported as a MessagePack-encodedbytesValue: HTTP/protobuf carries the bytes directly, and HTTP/JSON base64-encodes the same bytes. Native trace export and ordinary span tags are unchanged.Motivation
The Node.js native encoder already encodes each
meta_structentry as MessagePack. The old OTLP exporter instead put JSON text insidebytesValue, so a receiver reading those bytes as MessagePack could not reconstruct a RASP stack (_dd.stack). OTLP defines how to carry the bytes; MessagePack is the Datadog payload format, not an OTLP requirement. This change aligns Node.js with the Python (backed by libdatadog), Java and Dotnet tracers.