Class HttpSpanNameExtractor<REQUEST>
java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.http.HttpSpanNameExtractor<REQUEST>
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
public final class HttpSpanNameExtractor<REQUEST>
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
Extractor of the HTTP
span name. Instrumentation of HTTP server or client frameworks should use this class to
comply with OpenTelemetry HTTP semantic conventions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>create(HttpCommonAttributesGetter<REQUEST, ?> getter) Returns aSpanNameExtractorwhich should be used for HTTP requests.
-
Method Details
-
create
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(HttpCommonAttributesGetter<REQUEST, ?> getter) Returns aSpanNameExtractorwhich should be used for HTTP requests. HTTP attributes will be examined to determine the name of the span. -
extract
- Specified by:
extractin interfaceio.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
-