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

Make SpanContextState::flags() public #31

Merged
merged 3 commits into from
Nov 25, 2021
Merged

Make SpanContextState::flags() public #31

merged 3 commits into from
Nov 25, 2021

Conversation

jyn514
Copy link
Contributor

@jyn514 jyn514 commented Nov 23, 2021

This allows serializing the full span, which can be useful when e.g.
sending it through RPC without serializing to a string.

This also changes the flag field to u8, to match the docs.

Fixes #30

The jaeger docmentation guarantees that the flags will always fit into a
byte: https://www.jaegertracing.io/docs/1.28/client-libraries/#value
This allows serializing the full span, which can be useful when e.g.
sending it through RPC without serializing to a string.
@sile
Copy link
Owner

sile commented Nov 24, 2021

Thank you for your PR!
I think that this PR can be merged once the lint CI failure is fixed.

@jyn514
Copy link
Contributor Author

jyn514 commented Nov 25, 2021

Sure thing, done :)

Copy link
Owner

@sile sile left a comment

Choose a reason for hiding this comment

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

LGTM!

@sile sile merged commit 17ecebb into sile:master Nov 25, 2021
@jyn514 jyn514 deleted the flags branch November 25, 2021 13:19
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.

Make it possible to retrieve flags
2 participants