Skip to content

[instrumentation-undici] Traceparent not propagated correctly when header already exist in the request #2796

Open
@hectorhdzg

Description

@hectorhdzg

What version of OpenTelemetry are you using?

"@opentelemetry/sdk-node": "^0.200.0"

What version of Node are you using?

18.17.0

What did you do?

Enable undici instrumentation, manually add traceparent to request, make request using fetch

What did you expect to see?

traceparent header is propagated correctly

What did you see instead?

Incorrect format of traceparent causing parseTraceParent in W3CTraceContextPropagator to fail and return null

Ex:
traceparent = "00-5c4f0bdefa3390bbb38cc02bc2766517-7104f40181c58265-01, 00-5c4f0bdefa3390bbb38cc02bc2766517-db1f1457d0e19314-01"

Additional context

Related to
open-telemetry/opentelemetry-js#5590

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds:specThis cannot be implemented without some changes or clarifications in the specification or semconvpkg:instrumentation-undicipriority:p2Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions