Skip to content

Conversation

piotrj
Copy link

@piotrj piotrj commented Oct 10, 2025

What does this PR do?

Propagates opentelemetry's span kind into datadog's span.kind tag.

Motivation

Since opentelemetry tags always have span kinds defined (and if the host project doesn't specify it then it defaults to INTERNAL) then let's propagate that span kind to DD's span.kind tag so that it is properly visible in the UI. Otherwise we are forcing clients to add a redundant addAttribute if they want to retain the span kind after the trace is sent to datadog.

Since opentelemetry tags always have span kinds defined (and if the
host project doesn't specify it then it defaults to INTERNAL) then let's
propagate that span kind to DD's `span.kind` tag so that it is properly
visible in the UI. Otherwise we are forcing clients to add a redundant
addAttribute if they want to retain the span kind after the trace is
sent to datadog.
@piotrj piotrj requested a review from a team as a code owner October 10, 2025 18:29
@piotrj piotrj requested review from BridgeAR and removed request for a team October 10, 2025 18:29
@piotrj
Copy link
Author

piotrj commented Oct 10, 2025

I don't think I can add a label myself, but I guess this should be a semver-patch.
Or maybe semver-minor in case people will be surprised that suddenly their otel traces land in different section in the UI?

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.

1 participant