Skip to content

propagator-jaeger: 16 character trace-id isn't zero-padded to 32 characters as per specification #1983

@sid-maddy

Description

@sid-maddy

What version of OpenTelemetry are you using?

0.15

What version of Node are you using?

11.8.0

What did you do?

Tried to startSpan in server, expecting the incoming trace to be continued.
Calling service injects trace context using opentracing libraries (e.g. 6ba3280a2610ee73:2eac6cc9a037044f:9a60846c429bf918:1)

Manually zero-padding the trace id and calling setSpanContext() in a custom propagator extending the Jaeger propagator works as expected.

What did you expect to see?

The trace id of the incoming request to be propagated throughout the transaction.

What did you see instead?

A new trace id is generated.

Additional context

As per the propagation format described in Jaeger docs,

trace-id

  • Can be variable length, shorter values are 0-padded on the left
  • Receivers MUST accept hex-strings shorter than 32 characters and 0-pad them on the left

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingup-for-grabsGood for taking. Extra help will be provided by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions