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 hex_trace_id and hex_span_id helpers #332

Merged
merged 3 commits into from Aug 24, 2020
Merged

Add hex_trace_id and hex_span_id helpers #332

merged 3 commits into from Aug 24, 2020

Conversation

fbogsany
Copy link
Contributor

Implements open-telemetry/opentelemetry-specification#836.

Rather than rename trace_id and span_id to binary_trace_id and binary_span_id, I've left them as is and added documentation describing their format.

Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

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

Can we use the newly added helpers in TraceParent, here: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/api/lib/opentelemetry/trace/propagation/trace_context/trace_parent.rb#L77-L89. Otherwise, LGTM.

EDIT: It looks like the answer is no, since that code will parse them from a string, or a span context.

@fbogsany fbogsany merged commit 97af67b into master Aug 24, 2020
@fbogsany fbogsany deleted the hex_id_helpers branch August 24, 2020 22:58
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.

None yet

2 participants