Interface SpanStatusExtractor<REQUEST,RESPONSE>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extractor of
StatusCode, which will be called after a request and response is completed
to determine its final status.-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.trace.StatusCodeReturns theStatusCode.static <REQUEST,RESPONSE>
SpanStatusExtractor<REQUEST,RESPONSE> Returns the defaultSpanStatusExtractor, which returnsStatusCode.ERRORif the framework returned an unhandled exception, orStatusCode.UNSETotherwise.
-
Method Details
-
getDefault
Returns the defaultSpanStatusExtractor, which returnsStatusCode.ERRORif the framework returned an unhandled exception, orStatusCode.UNSETotherwise. -
extract
io.opentelemetry.api.trace.StatusCode extract(REQUEST request, @Nullable RESPONSE response, @Nullable Throwable error) Returns theStatusCode.
-