Class Experimental
java.lang.Object
io.opentelemetry.instrumentation.api.internal.Experimental
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>
voidaddOperationListenerAttributesExtractor(InstrumenterBuilder<REQUEST, RESPONSE> builder, AttributesExtractor<? super REQUEST, ? super RESPONSE> attributesExtractor) Add anAttributesExtractorto the givenInstrumenterBuilderthat provides attributes that are passed to theOperationListeners.static <REQUEST,RESPONSE>
voidinternalAddOperationListenerAttributesExtractor(BiConsumer<InstrumenterBuilder<REQUEST, RESPONSE>, AttributesExtractor<? super REQUEST, ? super RESPONSE>> operationListenerAttributesExtractorAdder) static voidinternalSetClientSensitiveQueryParameters(BiConsumer<HttpClientAttributesExtractorBuilder<?, ?>, Set<String>> clientSensitiveQueryParameters) static <REQUEST> voidinternalSetExceptionEventExtractor(BiConsumer<InstrumenterBuilder<REQUEST, ?>, InternalExceptionEventExtractor<? super REQUEST>> exceptionEventExtractorSetter) static voidinternalSetServerSensitiveQueryParameters(BiConsumer<HttpServerAttributesExtractorBuilder<?, ?>, Set<String>> serverSensitiveQueryParameters) static voidinternalSetSpanSuppressionStrategy(BiConsumer<InstrumenterBuilder<?, ?>, String> spanSuppressionStrategySetter) static <REQUEST> voidinternalSetUrlTemplateExtractor(BiConsumer<HttpSpanNameExtractorBuilder<REQUEST>, Function<REQUEST, String>> urlTemplateExtractorSetter) static <REQUEST> voidsetExceptionEventExtractor(InstrumenterBuilder<REQUEST, ?> builder, InternalExceptionEventExtractor<? super REQUEST> exceptionEventExtractor) Sets theInternalExceptionEventExtractorthat will determine the exception event name and severity.static voidsetSensitiveQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, Set<String> sensitiveQueryParameters) static voidsetSensitiveQueryParameters(HttpServerAttributesExtractorBuilder<?, ?> builder, Set<String> sensitiveQueryParameters) static voidsetSpanSuppressionStrategy(InstrumenterBuilder<?, ?> builder, String spanSuppressionStrategy) Sets the span suppression strategy.static <REQUEST> voidsetUrlTemplateExtractor(HttpSpanNameExtractorBuilder<REQUEST> builder, Function<REQUEST, String> urlTemplateExtractor)
-
Method Details
-
setSensitiveQueryParameters
public static void setSensitiveQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, Set<String> sensitiveQueryParameters) -
setSensitiveQueryParameters
public static void setSensitiveQueryParameters(HttpServerAttributesExtractorBuilder<?, ?> builder, Set<String> sensitiveQueryParameters) -
internalSetClientSensitiveQueryParameters
public static void internalSetClientSensitiveQueryParameters(BiConsumer<HttpClientAttributesExtractorBuilder<?, ?>, Set<String>> clientSensitiveQueryParameters) -
internalSetServerSensitiveQueryParameters
public static void internalSetServerSensitiveQueryParameters(BiConsumer<HttpServerAttributesExtractorBuilder<?, ?>, Set<String>> serverSensitiveQueryParameters) -
setUrlTemplateExtractor
public static <REQUEST> void setUrlTemplateExtractor(HttpSpanNameExtractorBuilder<REQUEST> builder, Function<REQUEST, String> urlTemplateExtractor) -
internalSetUrlTemplateExtractor
public static <REQUEST> void internalSetUrlTemplateExtractor(BiConsumer<HttpSpanNameExtractorBuilder<REQUEST>, Function<REQUEST, String>> urlTemplateExtractorSetter) -
addOperationListenerAttributesExtractor
public static <REQUEST,RESPONSE> void addOperationListenerAttributesExtractor(InstrumenterBuilder<REQUEST, RESPONSE> builder, AttributesExtractor<? super REQUEST, ? super RESPONSE> attributesExtractor) Add anAttributesExtractorto the givenInstrumenterBuilderthat provides attributes that are passed to theOperationListeners. This can be used to add attributes to the metrics without adding them to the span. To add attributes to the span useInstrumenterBuilder.addAttributesExtractor(AttributesExtractor). -
internalAddOperationListenerAttributesExtractor
public static <REQUEST,RESPONSE> void internalAddOperationListenerAttributesExtractor(BiConsumer<InstrumenterBuilder<REQUEST, RESPONSE>, AttributesExtractor<? super REQUEST, ? super RESPONSE>> operationListenerAttributesExtractorAdder) -
setExceptionEventExtractor
public static <REQUEST> void setExceptionEventExtractor(InstrumenterBuilder<REQUEST, ?> builder, InternalExceptionEventExtractor<? super REQUEST> exceptionEventExtractor) Sets theInternalExceptionEventExtractorthat will determine the exception event name and severity. Only used when emitting exceptions as logs is enabled via theotel.semconv.exception.signal.previewflag. -
internalSetExceptionEventExtractor
public static <REQUEST> void internalSetExceptionEventExtractor(BiConsumer<InstrumenterBuilder<REQUEST, ?>, InternalExceptionEventExtractor<? super REQUEST>> exceptionEventExtractorSetter) -
setSpanSuppressionStrategy
public static void setSpanSuppressionStrategy(InstrumenterBuilder<?, ?> builder, String spanSuppressionStrategy) Sets the span suppression strategy. Supported values arenone,span-kind, andsemconv. -
internalSetSpanSuppressionStrategy
public static void internalSetSpanSuppressionStrategy(BiConsumer<InstrumenterBuilder<?, ?>, String> spanSuppressionStrategySetter)
-