Class SpringWebfluxTelemetryBuilder
java.lang.Object
io.opentelemetry.instrumentation.spring.webflux.v5_3.SpringWebfluxTelemetryBuilder
Deprecated.
A builder of
SpringWebfluxTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionaddClientAttributesExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.reactive.function.client.ClientRequest, org.springframework.web.reactive.function.client.ClientResponse> attributesExtractor) Deprecated.addServerAttributesExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.server.ServerWebExchange, org.springframework.web.server.ServerWebExchange> attributesExtractor) Deprecated.build()Deprecated.setCapturedClientRequestHeaders(List<String> requestHeaders) Deprecated.setCapturedClientResponseHeaders(List<String> responseHeaders) Deprecated.setCapturedServerRequestHeaders(List<String> requestHeaders) Deprecated.setCapturedServerResponseHeaders(List<String> responseHeaders) Deprecated.setClientSpanNameExtractor(Function<io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.reactive.function.client.ClientRequest>, ? extends io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.reactive.function.client.ClientRequest>> clientSpanNameExtractor) Deprecated.setEmitExperimentalHttpClientTelemetry(boolean emitExperimentalHttpClientTelemetry) Deprecated.setEmitExperimentalHttpServerTelemetry(boolean emitExperimentalHttpServerTelemetry) Deprecated.setKnownMethods(Set<String> knownMethods) setServerSpanNameExtractor(Function<io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.server.ServerWebExchange>, ? extends io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.server.ServerWebExchange>> serverSpanNameExtractor) Deprecated.
-
Method Details
-
addClientAttributesExtractor
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder addClientAttributesExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.reactive.function.client.ClientRequest, org.springframework.web.reactive.function.client.ClientResponse> attributesExtractor) Deprecated.Adds an additionalAttributesExtractorto invoke to set attributes to instrumented items for WebClient. -
setCapturedClientRequestHeaders
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setCapturedClientRequestHeaders(List<String> requestHeaders) Deprecated.Configures the HTTP WebClient request headers that will be captured as span attributes.- Parameters:
requestHeaders- A list of HTTP header names.
-
setCapturedClientResponseHeaders
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setCapturedClientResponseHeaders(List<String> responseHeaders) Deprecated.Configures the HTTP WebClient response headers that will be captured as span attributes.- Parameters:
responseHeaders- A list of HTTP header names.
-
addServerAttributesExtractor
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder addServerAttributesExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.server.ServerWebExchange, org.springframework.web.server.ServerWebExchange> attributesExtractor) Deprecated.Adds an additionalAttributesExtractorto invoke to set attributes to instrumented items. -
setCapturedServerRequestHeaders
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setCapturedServerRequestHeaders(List<String> requestHeaders) Deprecated.Configures the HTTP request headers that will be captured as span attributes from server instrumentation.- Parameters:
requestHeaders- A list of HTTP header names.
-
setCapturedServerResponseHeaders
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setCapturedServerResponseHeaders(List<String> responseHeaders) Deprecated.Configures the HTTP response headers that will be captured as span attributes from server instrumentation.- Parameters:
responseHeaders- A list of HTTP header names.
-
setKnownMethods
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setKnownMethods(Set<String> knownMethods) Deprecated.Configures the instrumentation to recognize an alternative set of HTTP request methods.By default, this instrumentation defines "known" methods as the ones listed in RFC9110 and the PATCH method defined in RFC5789.
Note: calling this method overrides the default known method sets completely; it does not supplement it.
- Parameters:
knownMethods- A set of recognized HTTP request methods.- See Also:
-
setEmitExperimentalHttpClientTelemetry
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setEmitExperimentalHttpClientTelemetry(boolean emitExperimentalHttpClientTelemetry) Deprecated.Configures the instrumentation to emit experimental HTTP client metrics.- Parameters:
emitExperimentalHttpClientTelemetry-trueif the experimental HTTP client metrics are to be emitted.
-
setEmitExperimentalHttpServerTelemetry
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setEmitExperimentalHttpServerTelemetry(boolean emitExperimentalHttpServerTelemetry) Deprecated.Configures the instrumentation to emit experimental HTTP server metrics.- Parameters:
emitExperimentalHttpServerTelemetry-trueif the experimental HTTP server metrics are to be emitted.
-
setClientSpanNameExtractor
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setClientSpanNameExtractor(Function<io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.reactive.function.client.ClientRequest>, ? extends io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.reactive.function.client.ClientRequest>> clientSpanNameExtractor) Deprecated.Sets custom clientSpanNameExtractorvia transform function. -
setServerSpanNameExtractor
@Deprecated @CanIgnoreReturnValue public SpringWebfluxTelemetryBuilder setServerSpanNameExtractor(Function<io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.server.ServerWebExchange>, ? extends io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<? super org.springframework.web.server.ServerWebExchange>> serverSpanNameExtractor) Deprecated.Sets custom serverSpanNameExtractorvia transform function. -
build
Deprecated.Returns a newSpringWebfluxTelemetrywith the settings of thisSpringWebfluxTelemetryBuilder.
-
SpringWebfluxClientTelemetryBuilderandSpringWebfluxServerTelemetryBuilderinstead.