Ensure websockets 1xx response is not treated as an error
This commit is contained in:
committed by
Marcin Grzejszczak
parent
06ab758d69
commit
ea9553cef7
@@ -251,7 +251,7 @@ public class TraceFilter extends GenericFilterBean {
|
||||
return false;
|
||||
}
|
||||
HttpStatus httpStatus = HttpStatus.valueOf(response.getStatus());
|
||||
return httpStatus.is2xxSuccessful() || httpStatus.is3xxRedirection();
|
||||
return httpStatus.is1xxInformational() || httpStatus.is2xxSuccessful() || httpStatus.is3xxRedirection();
|
||||
}
|
||||
|
||||
private Span getSpanFromAttribute(HttpServletRequest request) {
|
||||
|
||||
@@ -140,7 +140,9 @@ public class DefaultTracer implements Tracer {
|
||||
}
|
||||
SpanContextHolder.close(new SpanContextHolder.SpanFunction() {
|
||||
@Override public void apply(Span span) {
|
||||
DefaultTracer.this.spanLogger.logStoppedSpan(savedSpan, span);
|
||||
if (span!=null) {
|
||||
DefaultTracer.this.spanLogger.logStoppedSpan(savedSpan, span);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user