Closed aep closed 1 year ago
it works when using middleware.Recoverer after otelchi, so that otelchi sees a 500. possibly otel does it correctly but since otelchi always calls span.SetStatus it is overriden?
Closed based on https://github.com/riandyrn/otelchi/pull/13#issuecomment-1374393645.
the middleware doesn't call recover anywhere, pressumably because otel already does that according to the trace
this records an event, but does not set the span as error.
confusingly, a 404 is set as error,
but i don't understand where that's happening either.because otelchi calls span.SetStatus . should it also do that for panic, or is that a problem in otel?