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

OpenCensusCallTracer: Move context generation to StartTransportStreamOpBatch #27523

Merged
merged 2 commits into from
Oct 2, 2021

Conversation

yashykt
Copy link
Member

@yashykt yashykt commented Sep 29, 2021

Internal issue reference: b/198790188

Turns out that StartNewAttempt on the call tracer can be invoked from a different thread ,i.e., not the application thread that started the RPC. After #27221 which changed the context generation to be done on the first call to StartNewAttempt, it meant that in some cases, the context would be generated in a different thread that does not have the threadlocal tags from the original thread.

@yashykt yashykt added the release notes: yes Indicates if PR needs to be in release notes label Sep 29, 2021
Copy link
Member

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Just one minor suggestion. Feel free to merge after addressing.

src/cpp/ext/filters/census/client_filter.cc Outdated Show resolved Hide resolved
@yashykt yashykt merged commit 36b0e06 into grpc:master Oct 2, 2021
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Oct 4, 2021
yashykt added a commit to yashykt/grpc that referenced this pull request Oct 22, 2021
…OpBatch (grpc#27523)

* OpenCensusCallTracer: Move context generation to StartTransportStreamOpBatch

* Reviewer comments
yashykt added a commit to yashykt/grpc that referenced this pull request Oct 22, 2021
…OpBatch (grpc#27523)

* OpenCensusCallTracer: Move context generation to StartTransportStreamOpBatch

* Reviewer comments
yashykt added a commit that referenced this pull request Oct 25, 2021
…OpBatch (#27523) (#27812)

* OpenCensusCallTracer: Move context generation to StartTransportStreamOpBatch

* Reviewer comments
yashykt added a commit that referenced this pull request Nov 11, 2021
…OpBatch (#27523) (#27813)

* OpenCensusCallTracer: Move context generation to StartTransportStreamOpBatch

* Reviewer comments
@yashykt yashykt deleted the OpenCensusFixContextGeneration branch May 18, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Specifies if the PR has been imported to the internal repository lang/c++ release notes: yes Indicates if PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants