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 voidinternalSetRedactHttpClientQueryParameters(BiConsumer<HttpClientAttributesExtractorBuilder<?, ?>, Boolean> redactHttpClientQueryParameters) static <REQUEST> voidinternalSetUrlTemplateExtractor(BiConsumer<HttpSpanNameExtractorBuilder<REQUEST>, Function<REQUEST, String>> urlTemplateExtractorSetter) static voidsetRedactQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, boolean redactQueryParameters) static <REQUEST> voidsetUrlTemplateExtractor(HttpSpanNameExtractorBuilder<REQUEST> builder, Function<REQUEST, String> urlTemplateExtractor)
-
Method Details
-
setRedactQueryParameters
public static void setRedactQueryParameters(HttpClientAttributesExtractorBuilder<?, ?> builder, boolean redactQueryParameters) -
internalSetRedactHttpClientQueryParameters
public static void internalSetRedactHttpClientQueryParameters(BiConsumer<HttpClientAttributesExtractorBuilder<?, ?>, Boolean> redactHttpClientQueryParameters) -
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)
-