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

Handle B3 trace_id and span_id correctly #934

Merged
merged 8 commits into from
Aug 6, 2020

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Jul 22, 2020

Fixes #933

These fields are not being handled correctly when one or both of them
receive invalid values.

@ocelotl ocelotl self-assigned this Jul 22, 2020
@ocelotl ocelotl marked this pull request as ready for review July 27, 2020 19:10
@ocelotl ocelotl requested a review from a team July 27, 2020 19:10
@@ -95,19 +97,34 @@ def extract(
or flags
)

if (
fullmatch(r"[\da-fA-F]{16}|[\da-fA-F]{32}", trace_id) is None
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get a test case for this?

Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

LGTM

@lzchen lzchen merged commit 590c32c into open-telemetry:master Aug 6, 2020
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.

B3 trace_id and span_id not handled correctly
5 participants