Class InstrumenterUtil
java.lang.Object
io.opentelemetry.instrumentation.api.internal.InstrumenterUtil
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <REQUEST,RESPONSE>
Instrumenter<REQUEST, RESPONSE> buildDownstreamInstrumenter(InstrumenterBuilder<REQUEST, RESPONSE> builder, io.opentelemetry.context.propagation.TextMapSetter<REQUEST> setter, SpanKindExtractor<REQUEST> spanKindExtractor) static <REQUEST,RESPONSE>
Instrumenter<REQUEST, RESPONSE> buildUpstreamInstrumenter(InstrumenterBuilder<REQUEST, RESPONSE> builder, io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getter, SpanKindExtractor<REQUEST> spanKindExtractor) static <REQUEST,RESPONSE>
InstrumenterBuilder<REQUEST, RESPONSE> propagateOperationListenersToOnEnd(InstrumenterBuilder<REQUEST, RESPONSE> builder) static voidsetInstrumenterAccess(InstrumenterAccess instrumenterAccess) static voidsetInstrumenterBuilderAccess(InstrumenterBuilderAccess instrumenterBuilderAccess) static <REQUEST,RESPONSE>
io.opentelemetry.context.ContextstartAndEnd(Instrumenter<REQUEST, RESPONSE> instrumenter, io.opentelemetry.context.Context parentContext, REQUEST request, RESPONSE response, Throwable error, Instant startTime, Instant endTime) static <REQUEST,RESPONSE>
io.opentelemetry.context.ContextsuppressSpan(Instrumenter<REQUEST, RESPONSE> instrumenter, io.opentelemetry.context.Context parentContext, REQUEST request)
-
Method Details
-
setInstrumenterAccess
-
setInstrumenterBuilderAccess
public static void setInstrumenterBuilderAccess(InstrumenterBuilderAccess instrumenterBuilderAccess) -
startAndEnd
-
suppressSpan
public static <REQUEST,RESPONSE> io.opentelemetry.context.Context suppressSpan(Instrumenter<REQUEST, RESPONSE> instrumenter, io.opentelemetry.context.Context parentContext, REQUEST request) -
buildUpstreamInstrumenter
public static <REQUEST,RESPONSE> Instrumenter<REQUEST,RESPONSE> buildUpstreamInstrumenter(InstrumenterBuilder<REQUEST, RESPONSE> builder, io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getter, SpanKindExtractor<REQUEST> spanKindExtractor) -
buildDownstreamInstrumenter
public static <REQUEST,RESPONSE> Instrumenter<REQUEST,RESPONSE> buildDownstreamInstrumenter(InstrumenterBuilder<REQUEST, RESPONSE> builder, io.opentelemetry.context.propagation.TextMapSetter<REQUEST> setter, SpanKindExtractor<REQUEST> spanKindExtractor) -
propagateOperationListenersToOnEnd
@CanIgnoreReturnValue public static <REQUEST,RESPONSE> InstrumenterBuilder<REQUEST,RESPONSE> propagateOperationListenersToOnEnd(InstrumenterBuilder<REQUEST, RESPONSE> builder)
-