Interface SpanNameExtractor<REQUEST>
-
- All Known Implementing Classes:
DbSpanNameExtractor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SpanNameExtractor<REQUEST>
Extractor of the span name for a request. Where possible, an extractor based on semantic conventions returned from the factories in this class should be used. The most common reason to provide a custom implementation would be to apply the extractor for a particular semantic convention by first determining which convention applies to the request.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringextract(REQUEST request)Returns the span name.static <REQUEST> SpanNameExtractor<REQUEST>http(HttpAttributesExtractor<REQUEST,?> attributesExtractor)Returns aSpanNameExtractorwhich should be used for HTTP requests.
-
-
-
Method Detail
-
http
static <REQUEST> SpanNameExtractor<REQUEST> http(HttpAttributesExtractor<REQUEST,?> attributesExtractor)
Returns aSpanNameExtractorwhich should be used for HTTP requests. HTTP attributes will be examined to determine the name of the span.
-
-