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

Pass around context more instead of span (HttpServerTracer) #1810

Merged
merged 5 commits into from
Dec 1, 2020

Conversation

trask
Copy link
Member

@trask trask commented Dec 1, 2020

Follow-on to #1525

  • now adds CONTEXT_SERVER_SPAN_KEY in startSpan() instead of startScope()
  • HttpServerTracer.startScope() doesn't do anything after above change, so removed
  • pass Context to end() and endExceptionally(), since now don't typically have Span reference handy to pass in

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

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

I've always found startScope to be a confusing method, so I like this

@trask trask merged commit 0bd85d7 into open-telemetry:master Dec 1, 2020
@trask trask deleted the pass-context-instead-of-span branch December 1, 2020 22:49
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

4 participants