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

Instrument DefaultSpan.create to return a bridged span. #947

Merged
merged 3 commits into from
Aug 12, 2020

Conversation

anuraaga
Copy link
Contributor

Half of #764 - I realized that the issue actually shows two exceptions, Unexpected span and Unexpected context. Will continue to debug but figured it's worth getting this in first since it's ready.

@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void methodExit(
@Advice.Return(readOnly = false) unshaded.io.opentelemetry.trace.Span span) {
span = Bridging.toUnshaded(DefaultSpan.create(Bridging.toShaded(span.getContext())));
Copy link
Contributor

Choose a reason for hiding this comment

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

😭

@iNikem
Copy link
Contributor

iNikem commented Aug 12, 2020

Don't wait for me, I cannot bring myself to approving this :)

@trask trask merged commit e9d456d into open-telemetry:master Aug 12, 2020
mabdinur pushed a commit to mabdinur/opentelemetry-java-instrumentation that referenced this pull request Aug 17, 2020
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

3 participants