Skip to content

Conversation

@slashmo
Copy link
Member

@slashmo slashmo commented Nov 5, 2020

Upgrade trace id from a plain String to its own TraceID struct. This will allow users to make computations, such as comparing the low value to an upper bound (probabilistic sampling).

@slashmo slashmo added the enhancement New feature or request label Nov 5, 2020
@slashmo slashmo self-assigned this Nov 5, 2020
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

LGTM :) I think I'd want to add the !-safe comments everywhere tbh, it's noisy but allows us to grep codebases for ! and see if anything is not !-safe annotated

@slashmo
Copy link
Member Author

slashmo commented Nov 6, 2020

I think I'd want to add the !-safe comments everywhere tbh, it's noisy but allows us to grep codebases for ! and see if anything is not !-safe annotated
@ktoso

I tend to only "justify" ! in production code, but never thought about grepping. That's a good point! Will update 👌

@slashmo slashmo merged commit e181c5a into main Nov 6, 2020
@slashmo slashmo deleted the feature/trace-id-type branch November 6, 2020 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants