Skip to content

Handle B3 trace_id and span_id correctly#934

Merged
lzchen merged 8 commits intoopen-telemetry:masterfrom
ocelotl:issue_933
Aug 6, 2020
Merged

Handle B3 trace_id and span_id correctly#934
lzchen merged 8 commits intoopen-telemetry:masterfrom
ocelotl:issue_933

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
)

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