datadog_traces sink: APM stats missing span.kind dimension
Author: dgdelaheraCreated Mar 12, 2026Updated Sep 30, 2026
Labelssink: datadog_traces
Use Cases
When sending datadog agent traces to vector, the trace.* metrics (hits, errors, duration) lose the span.kind dimension. Spans that have span.kind: server in the raw trace appear as span.kind: internal in APM metrics on the Datadog side.
In the following dashbaord, we can see when the traces were being sent to Vector
This breaks Datadog APM features that rely on span.kind, such as all the dashboards in the APM service page.
- Datadog Agent stats aggregation key: pkg/trace/stats/aggregation.go includes SpanKind, PeerTagsHash, IsTraceRoot, and other fields missing from Vector's implementation.
- Vector stats aggregation key: src/sinks/datadog/traces/apm_stats/aggregation.rs only includes service, name, resource, ty, status_code, synthetics.
Version
0.53.0
A note for the community
- Please vote on this issue by adding a reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Source: vectordotdev/vector