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

use NewRoot() standard code. #513

Merged
merged 1 commit into from
Mar 4, 2020
Merged

use NewRoot() standard code. #513

merged 1 commit into from
Mar 4, 2020

Conversation

lizthegrey
Copy link
Member

@lizthegrey lizthegrey commented Mar 4, 2020

othttp code was clashing with the code that automatically detects parent remote spans in the context; it needs WithNewRoot() instead if public, and otherwise to do nothing to inherit as normal using the default propagation code.

Fixes regression introduced by #451

@lizthegrey
Copy link
Member Author

For now, the broken othttp.WithPublicEndpoint() that fails to force a root span can instead be replaced with othttp.WithSpanOptions(trace.WithNewRoot()).

@rghetia rghetia merged commit 6769330 into open-telemetry:master Mar 4, 2020
@lizthegrey lizthegrey deleted the lizf.othttp branch March 6, 2020 19:06
MikeGoldsmith pushed a commit to MikeGoldsmith/opentelemetry-go that referenced this pull request Mar 13, 2020
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

4 participants