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

Remove unnecessary TraceContext creation for root span #1223

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

wiwa
Copy link
Contributor

@wiwa wiwa commented Mar 30, 2020

Currently, we manually create a root TraceContext in order to set the debug sampling flag. This change allows us to directly create a root span instead. What this means practically is that the root span will not have a parentId field, instead of the value it would have currently, which is not within the set of spanIds, causing certain validations to fail.

Copy link
Contributor

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@olafurpg olafurpg merged commit 61fbbe0 into scalacenter:master Mar 31, 2020
@jvican jvican added enhancement ergonomics Any change that affects developer ergonomics and the easiness of use of bloop. labels Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ergonomics Any change that affects developer ergonomics and the easiness of use of bloop.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants