-
Notifications
You must be signed in to change notification settings - Fork 697
Update StatusCodes to comply with specs #1214
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
Comments
@lzchen the spec suggests that instrumentations should not set the status code to OK, any thoughts on the best way to implement this? I could imagine a configuration option to enable or disable this by default. Any thoughts?
|
@codeboten |
Discussion with @codeboten , we need to find a consistent way of handling exceptions and setting status across instrumentations. |
As of open-telemetry#1214, the status codes changed and no longer line up with gRPC status codes, so now we'll just set `StatusCode.ERROR` and store the actual gRPC status code in the trace as `grpc.status_code`.
As of #1214, the status codes changed and no longer line up with gRPC status codes, so now we'll just set `StatusCode.ERROR` and store the actual gRPC status code in the trace as `grpc.status_code`. Specifically this: open-telemetry/opentelemetry-specification#1156
From pr and specs. Change old grpc status code to newly defined status codes.
The text was updated successfully, but these errors were encountered: