mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-23 11:14:48 +02:00
Fix HTTP status when OTel is enabled
This commit is contained in:
parent
296d2db8cf
commit
9aa658b758
@ -334,6 +334,8 @@ func StartRootSpan(ctx context.Context, rw http.ResponseWriter, r *http.Request)
|
||||
spanStatus, spanMessage := semconv.SpanStatusFromHTTPStatusCodeAndSpanKind(statusCode, trace.SpanKindServer)
|
||||
span.SetAttributes(attrs...)
|
||||
span.SetStatus(spanStatus, spanMessage)
|
||||
|
||||
next(statusCode)
|
||||
}
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user