-
Notifications
You must be signed in to change notification settings - Fork 91
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
Audit and update google/golang/org/grpc
instrumentation to comply with RPC semantic conventions
#172
Comments
Latest RPC conventions: https://github.com/open-telemetry/semantic-conventions/blob/02ecf0c71e9fa74d09d81c48e04a132db2b7060b/docs/rpc/rpc-spans.md and specifically the gRPC conventions (which extend and override RPC): https://github.com/open-telemetry/semantic-conventions/blob/02ecf0c71e9fa74d09d81c48e04a132db2b7060b/docs/rpc/grpc.md
Correct - client
We don’t seem to currently fit this in our example, see the gRPC test spans, which for example set We are grabbing this value directly from the
The following attributes are required:
Only one that applies to us is
The following are required:
gRPC specific conventionsThe following attributes are required on both server and client:
Updates needed
|
For @RonFed do we have any way to read the return values for an instrumented function? |
@damemi The returned |
@RonFed yeah, that's what I'm saying is that gRPC should always return the error's concrete type as a Do we have any examples of reading return values? I know we read the method arguments |
@damemi Yes, Here we are reading the returned pointer from a register: Lines 388 to 389 in 68865cc
Here we are reading the returned value of the stack: Lines 166 to 167 in 68865cc
In the error case it will be returned as a pointer in a register, we can read the pointer and then the fields. |
Awesome, thanks! I'll try to follow that and implement it for grpc |
https://github.com/open-telemetry/opentelemetry-specification/blob/84a5fa3d1ef42caae8f99f1b431504d7cdb9fffe/specification/trace/semantic_conventions/rpc.md
The text was updated successfully, but these errors were encountered: