Class ServletInstrumenterBuilder<REQUEST,RESPONSE>
java.lang.Object
io.opentelemetry.javaagent.instrumentation.servlet.ServletInstrumenterBuilder<REQUEST,RESPONSE>
-
Method Summary
Modifier and TypeMethodDescriptionaddContextCustomizer(io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<? super ServletRequestContext<REQUEST>> contextCustomizer) io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<ServletRequestContext<REQUEST>, ServletResponseContext<RESPONSE>> build(String instrumentationName, ServletAccessor<REQUEST, RESPONSE> accessor) io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<ServletRequestContext<REQUEST>, ServletResponseContext<RESPONSE>> build(String instrumentationName, ServletAccessor<REQUEST, RESPONSE> accessor, io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<ServletRequestContext<REQUEST>> spanNameExtractor, io.opentelemetry.instrumentation.api.semconv.http.HttpServerAttributesGetter<ServletRequestContext<REQUEST>, ServletResponseContext<RESPONSE>> httpAttributesGetter) static <REQUEST,RESPONSE>
ServletInstrumenterBuilder<REQUEST, RESPONSE> create()
-
Method Details
-
create
-
addContextCustomizer
@CanIgnoreReturnValue public ServletInstrumenterBuilder<REQUEST,RESPONSE> addContextCustomizer(io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<? super ServletRequestContext<REQUEST>> contextCustomizer) -
propagateOperationListenersToOnEnd
@CanIgnoreReturnValue public ServletInstrumenterBuilder<REQUEST,RESPONSE> propagateOperationListenersToOnEnd() -
build
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<ServletRequestContext<REQUEST>,ServletResponseContext<RESPONSE>> build(String instrumentationName, ServletAccessor<REQUEST, RESPONSE> accessor, io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<ServletRequestContext<REQUEST>> spanNameExtractor, io.opentelemetry.instrumentation.api.semconv.http.HttpServerAttributesGetter<ServletRequestContext<REQUEST>, ServletResponseContext<RESPONSE>> httpAttributesGetter) -
build
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<ServletRequestContext<REQUEST>,ServletResponseContext<RESPONSE>> build(String instrumentationName, ServletAccessor<REQUEST, RESPONSE> accessor)
-