Class SpringWebfluxTelemetryBuilder
java.lang.Object
io.opentelemetry.instrumentation.spring.webflux.client.SpringWebfluxTelemetryBuilder
A builder of
SpringWebfluxTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionaddAttributesExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.reactive.function.client.ClientRequest, org.springframework.web.reactive.function.client.ClientResponse> attributesExtractor) Adds an additionalAttributesExtractorto invoke to set attributes to instrumented items.build()Returns a newSpringWebfluxTelemetrywith the settings of thisSpringWebfluxTelemetryBuilder.setCapturedRequestHeaders(List<String> requestHeaders) Configures the HTTP request headers that will be captured as span attributes.setCapturedResponseHeaders(List<String> responseHeaders) Configures the HTTP response headers that will be captured as span attributes.setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes) Sets whether experimental attributes should be set to spans.
-
Method Details
-
addAttributesExtractor
public SpringWebfluxTelemetryBuilder addAttributesExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.reactive.function.client.ClientRequest, org.springframework.web.reactive.function.client.ClientResponse> attributesExtractor) Adds an additionalAttributesExtractorto invoke to set attributes to instrumented items. -
setCapturedRequestHeaders
Configures the HTTP request headers that will be captured as span attributes.- Parameters:
requestHeaders- A list of HTTP header names.
-
setCapturedResponseHeaders
Configures the HTTP response headers that will be captured as span attributes.- Parameters:
responseHeaders- A list of HTTP header names.
-
setCaptureExperimentalSpanAttributes
public SpringWebfluxTelemetryBuilder setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes) Sets whether experimental attributes should be set to spans. These attributes may be changed or removed in the future, so only enable this if you know you do not require attributes filled by this instrumentation to be stable across versions. -
build
Returns a newSpringWebfluxTelemetrywith the settings of thisSpringWebfluxTelemetryBuilder.
-