feat(tracing): export OTLP trace metrics - #19672
Conversation
Circular import analysis
|
Dependency direction analysis
|
Codeowners resolved asResolved from the full PR diff against |
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 65ae0d6 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-08-13 20:10:35 Comparing candidate commit 65ae0d6 in PR branch Found 0 performance improvements and 8 performance regressions! Performance is the same for 609 metrics, 10 unstable metrics. scenario:httppropagationinject-ids_only
scenario:iastaspects-capitalize_noaspect
scenario:iastaspects-index_aspect
scenario:iastaspects-stringio_aspect
scenario:iastaspectsospath-ospathbasename_aspect
scenario:span-start
scenario:telemetryaddmetric-1-count-metric-1-times
scenario:tracer-small
|
Update system-test revisions and adapt OTel thread-context and metric resource tests for libdatadog v41.0.0.
cac4a78 to
65a8ed9
Compare
dd0b539 to
3c376e3
Compare
2450058 to
58ab7a9
Compare
## Description Updates ddtrace-py native dependencies without adding OTLP trace-metrics behavior: - Upgrades every libdatadog crate from v40.0.0 to v41.0.0 and regenerates `Cargo.lock`. - Updates the GitHub and GitLab system-test revisions to `692e9462ef7296cf1224c0d2bd3a3623a1bfe590` using `scripts/update-system-tests-version.py`. - Extends the Linux OTel thread-context test to cover trace flags added in libdatadog v41.0.0. - Updates the OTLP metrics payload test for typed resource attributes emitted by v41. ## Testing - `cargo check --locked --manifest-path src/native/Cargo.toml` - `scripts/lint checks` ## Risks This updates the shared native dependency used by tracing, profiling, telemetry, remote configuration, and crash tracking. ## Additional Notes [#19672](#19672) is stacked on this PR and contains the OTLP trace-metrics feature and release note. Co-authored-by: munir.abdinur <munir.abdinur@datadoghq.com>
c7d789c to
a9f635b
Compare
21711a9 to
802e313
Compare
Description
Wires ddtrace-py configuration into the libdatadog v41 OTLP trace-metrics exporter:
DD_TAGSentries to the metrics resource asdatadog.tracer_tags, excluding reserved service, environment, version, and runtime ID keys.DD_TRACE_STATS_ADDITIONAL_TAGSand forwards the selected span-tag keys to native stats aggregation.This follows the contract introduced in system-tests#7363 and refined in system-tests#7466.
Testing
cargo check --locked --manifest-path src/native/Cargo.tomlscripts/lint checkstests/tracer/test_writer.pyandtests/opentelemetry/test_otlp_trace.pyRisks
The new export path is disabled unless
OTEL_TRACES_SPAN_METRICS_ENABLED=true.Additional Notes
Stacked on #19580, which updates libdatadog to v41.0.0 and must merge first.