-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Hello, I've discovered an issue with the new tracer implementation - when http status code that the route returns is 500, the span status is still set to Unset. The previous implementation of the tracer would set it to Error.
The only place where the tracer sets it to error is this:
err := next(c)
if err != nil {
span.SetAttributes(semconv.ErrorType(err))
span.SetStatus(codes.Error, err.Error())
if config.OnNextError != nil {
config.OnNextError(c, err)
}
}but in case of responses like return c.String(http.StatusInternalServerError, "error") err is always nil.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels