Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

ecourreges-orange
Copy link
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 as a code owner July 13, 2020 20:30
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 13, 2020

CLA Check
The committers are authorized under a signed CLA.

Copy link
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?

@@ -97,10 +97,10 @@ def test_constructor_explicit(self):
def test_export(self):

span_names = ("test1", "test2", "test3", "test4")
trace_id = 0x6E0C63257DE34C926F9EFCD03927272E
span_id = 0x34BF92DEEFC58C92
trace_id = 0x0E6C63257DE34C926F9EFCD03927272E
Copy link
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
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
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
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
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