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 voidinternalSetServerSensitiveQueryParameters(BiConsumer<HttpServerAttributesExtractorBuilder<?, ?>, Set<String>> serverSensitiveQueryParameters) static <REQUEST> voidinternalSetUrlTemplateExtractor(BiConsumer<HttpSpanNameExtractorBuilder<REQUEST>, Function<REQUEST, String>> urlTemplateExtractorSetter) static voidsetRedactQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, boolean redactQueryParameters) Deprecated.static voidsetSensitiveQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, Set<String> sensitiveQueryParameters) static voidsetSensitiveQueryParameters(HttpServerAttributesExtractorBuilder<?, ?> builder, Set<String> sensitiveQueryParameters) static <REQUEST> voidsetUrlTemplateExtractor(HttpSpanNameExtractorBuilder<REQUEST> builder, Function<REQUEST, String> urlTemplateExtractor)
-
Method Details
-
setRedactQueryParameters
@Deprecated public static void setRedactQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, boolean redactQueryParameters) Deprecated. -
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)
-
setSensitiveQueryParameters(HttpClientAttributesExtractorBuilder, Set)instead.