-
Notifications
You must be signed in to change notification settings - Fork 563
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
Align gRPC server status code to span status code #3685
Conversation
|
Could you add a changelog entry, as well as tests? |
@dmathieu Yes, on it, will add it later |
Hi @dmathieu, I have added tests and a changelog entry for the changes I made. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3685 +/- ##
=======================================
+ Coverage 70.0% 70.1% +0.1%
=======================================
Files 147 147
Lines 6966 6973 +7
=======================================
+ Hits 4880 4892 +12
+ Misses 1961 1958 -3
+ Partials 125 123 -2
|
There still seems to be CI issues. |
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
fix CR note on the changelog Co-authored-by: Robert Pająk <pellared@hotmail.com>
@pellared fixed your comments and refactors the stream + unary tests to use shared assert methods |
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Outdated
Show resolved
Hide resolved
instrumentation/google.golang.org/grpc/otelgrpc/test/interceptor_test.go
Show resolved
Hide resolved
@MrAlias added all gRPC statuses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thank you for your contribution 👍
Following an update to OTEL spec, align gRPC server instrumentation to the new span status code
https://github.com/open-telemetry/opentelemetry-specification/blob/f5a269fd3de948656c085c25d83342c78c8dc99c/specification/trace/semantic_conventions/rpc.md#grpc-status
Pull Request in the OTEL spec: open-telemetry/opentelemetry-specification#3333