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

Ensure context propagation to gRPC pending calls to improve Code Hotspots for gRPC client #4646

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

richardstartin
Copy link
Member

What Does This Do

This moves starting the span to ManagedChannelImpl#newCall, which ensures there is an active span when PendingCalls are created and reprocessed (where the real call is created) within a synchronization context, which requires whitelisting one of grpc's executors.

Motivation

Better code hotspots for grpc client

Additional Notes

@richardstartin richardstartin added inst: grpc gRPC instrumentation comp: profiling Profiling labels Feb 3, 2023
@richardstartin richardstartin requested a review from a team as a code owner February 3, 2023 10:38
@richardstartin richardstartin changed the title rework instrumentation to handle pending calls rework grpc client instrumentation to handle pending calls Feb 3, 2023
@richardstartin richardstartin changed the title rework grpc client instrumentation to handle pending calls Ensure propagation to gRPC pending calls to improve Code Hotspots for gRPC client Feb 6, 2023
@richardstartin richardstartin merged commit 6c40cb8 into master Feb 6, 2023
@richardstartin richardstartin deleted the rgs/grpc-pending-calls branch February 6, 2023 18:45
@github-actions github-actions bot added this to the 1.7.0 milestone Feb 6, 2023
@richardstartin richardstartin changed the title Ensure propagation to gRPC pending calls to improve Code Hotspots for gRPC client Ensure context propagation to gRPC pending calls to improve Code Hotspots for gRPC client Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: profiling Profiling inst: grpc gRPC instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants