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

Move SERVER and CLIENT span context keys out of BaseTracer #2468

Conversation

mateuszrzeszutek
Copy link
Member

Inspired by #1726 (comment)

Comment on lines -48 to -49
// TODO(anuraaga): Should probably be renamed to local root key since it could be a consumer span
// or other non-server root.
Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed this TODO because it's possible to have a CONSUMER->CONSUMER trace (in case of batch receiving).

@trask
Copy link
Member

trask commented Mar 2, 2021

Closing and re-opening to re-trigger CLA check

@trask trask closed this Mar 2, 2021
@trask trask reopened this Mar 2, 2021
return context.get(KEY);
}

static Context with(Context context, Span clientSpan) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not quite happy with this name. It seems like "client span with that context". Oh where are you, extension functions or infix operators!

But I don't have much better suggestions right now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add is a bit better

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh where are you, extension functions or infix operators!

We can't switch to Kotlin this late in the game, can we? 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Don't think so :)

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
@mateuszrzeszutek mateuszrzeszutek merged commit 04d6fb6 into open-telemetry:main Mar 3, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the extract-client-server-span-context-keys branch March 3, 2021 15:12
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