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

tracing: fix OpenTracing traces across nodes #62703

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

andreimatei
Copy link
Contributor

"Shadow traces" (OpenTracing) were broken at node boundaries because the
server shadow span was not using the remote span context.
I believe this was broken in #56109.

Fixes #62702

Release note (bug fix): OpenTracing traces work correctly again across
nodes. The client and server spans for RPCs are once again part of the
same trace instead of the server being a root span erroneously.

"Shadow traces" (OpenTracing) were broken at node boundaries because the
server shadow span was not using the remote span context.
I believe this was broken in cockroachdb#56109.

Fixes cockroachdb#62702

Release note (bug fix): OpenTracing traces work correctly again across
nodes. The client and server spans for RPCs are once again part of the
same trace instead of the server being a root span erroneously.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

This augments the previous commit, which fixed the bug.

Release note: None
@tbg
Copy link
Member

tbg commented Mar 29, 2021

Thank you! I noticed there wasn't a test so I added one (and refactored the logic slightly).

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 29, 2021

Build succeeded:

@craig craig bot merged commit 527f243 into cockroachdb:master Mar 29, 2021
@andreimatei andreimatei deleted the tracing.fix-shadow-remote branch May 14, 2021 14:58
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.

tracing: OpenTracing shadow traces don't work across node boundaries
3 participants