Class UrlAttributesExtractor<REQUEST,RESPONSE>
java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesExtractor<REQUEST,RESPONSE>
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>
public final class UrlAttributesExtractor<REQUEST,RESPONSE>
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>
Extractor of URL
attributes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <REQUEST,RESPONSE>
UrlAttributesExtractor<REQUEST,RESPONSE> create(UrlAttributesGetter<REQUEST> getter) Returns a newUrlAttributesExtractorthat will use the passedUrlAttributesGetter.voidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, REQUEST request, RESPONSE response, Throwable error) voidonStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, REQUEST request)
-
Method Details
-
create
public static <REQUEST,RESPONSE> UrlAttributesExtractor<REQUEST,RESPONSE> create(UrlAttributesGetter<REQUEST> getter) Returns a newUrlAttributesExtractorthat will use the passedUrlAttributesGetter. -
onStart
public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, REQUEST request) -
onEnd
-