Skip to content

Add proper length zero padding to hex strings sent on the wire#908

Merged
lzchen merged 2 commits intoopen-telemetry:masterfrom
ecourreges-orange:master
Jul 30, 2020
Merged

Add proper length zero padding to hex strings sent on the wire#908
lzchen merged 2 commits intoopen-telemetry:masterfrom
ecourreges-orange:master

Conversation

@ecourreges-orange
Copy link
Copy Markdown
Contributor

traceId length 32, parentId and spanId length 16
For compatibility with jaeger-collector
Fixes #907

@ecourreges-orange ecourreges-orange requested a review from a team July 13, 2020 20:30
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Jul 13, 2020

CLA Check
The committers are authorized under a signed CLA.

Copy link
Copy Markdown
Member

@toumorokoshi toumorokoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once CI is fixed and a specific regression test is added, LGTM!

Also can you add entries to the appropriate changelogs?

span_names = ("test1", "test2", "test3", "test4")
trace_id = 0x6E0C63257DE34C926F9EFCD03927272E
span_id = 0x34BF92DEEFC58C92
trace_id = 0x0E6C63257DE34C926F9EFCD03927272E
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it would be better if we added a specific test to ensure that zero-padding works as intended. The current test makes no indicator that the zero-padded traceid is intentional to catch bugs.

A good test with a docstring per regression to educate and ensure future refactors are aware of the rationale for the test, is great.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, will do your suggestions tomorrow.
I hope I can get the CLA signed by my company though.
It's weird, I had the approved CLA for CNCF last month but this got switched to EasyCLA which requires a new signature.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I believe if you signed at least one of the CLAs, that's ok for us to merge. But I'll let the maintainers weigh in there.

Copy link
Copy Markdown
Member

@toumorokoshi toumorokoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Copy Markdown
Contributor

@lzchen lzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the CHANGELOG

…entId sent on the wire

For compatibility with jaeger-collector
Fixes open-telemetry#907
@lzchen lzchen merged commit 1112792 into open-telemetry:master Jul 30, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
…emetry#910)

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
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.

zipkin exporter does not work with jaeger collector for spanIds/traceIds/parentIds starting with a 0

3 participants