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

More grpc events #4098

Merged
merged 4 commits into from
Sep 13, 2021
Merged

More grpc events #4098

merged 4 commits into from
Sep 13, 2021

Conversation

trask
Copy link
Member

@trask trask commented Sep 12, 2021

Resolves #4089 (I will split out the good question about unary calls to a separate issue).

This PR does 3 things:

  • Fixes the "onMessage" event on the grpc client span from SENT to RECEIVED
  • Adds (a correct) SENT event on the grpc client span
  • Adds a SENT event on the grpc server span

(the diff looks worse than it is, because I moved a couple of nested classes inside of other nested classes due to needing to use the AtomicLongFieldUpdater from multiple places now)

@@ -125,32 +107,57 @@ public void onMessage(RESPONSE message) {
GrpcHelper.MESSAGE_ID,
Copy link
Contributor

Choose a reason for hiding this comment

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

I was looking for the SENT and found it in this "unchanged code" :P

@trask trask merged commit 9de4041 into open-telemetry:main Sep 13, 2021
@trask trask deleted the more-grpc-events branch September 13, 2021 17: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.

gRPC client interceptor: creates SENT event in response to message being received from the server
3 participants