otelgrpc: suppress NotFound errors for client spans#316
otelgrpc: suppress NotFound errors for client spans#316lucasmeijer wants to merge 1 commit intobuildbarn:mainfrom
Conversation
|
|
I think this is something that should be raised on the OpenTelemetry side. We just use the stock middleware here. |
|
i suspect i'm not going to get far over there: The grpc client semantics conventions explicitely say: [2] rpc.response.status_code: All status codes except OK SHOULD be considered errors. (from https://opentelemetry.io/docs/specs/semconv/rpc/grpc/ ) maybe the solution is just that I give up on this idea that traces that were fine have no errors. |

I do not expect this PR to be accepted. I'm posting it as an illustration of a problem I have: in Bonanza, UploadObject traces are marked as errors when gRPC returns status code 5 (NotFound). That status is expected and valid in the protocol, but it causes my Bonanza OTel traces to contain a lot of noise that looks like real errors.
I’m not happy with how much boilerplate this approach requires, and I’m very open to a different direction.