Skip to content

More grpc events - #4098

Merged
trask merged 4 commits into
open-telemetry:mainfrom
trask:more-grpc-events
Sep 13, 2021
Merged

More grpc events#4098
trask merged 4 commits into
open-telemetry:mainfrom
trask:more-grpc-events

Conversation

@trask

@trask trask commented Sep 12, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
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