Class MicrometerTracingAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.tracing.MicrometerTracingAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(io.micrometer.tracing.Tracer.class)
@ConditionalOnEnabledTracing
public class MicrometerTracingAutoConfiguration
extends Object
Auto-configuration
for the Micrometer Tracing API.- Since:
- 3.0.0
- Author:
- Moritz Halbritter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
@Order
value ofdefaultTracingObservationHandler(Tracer)
.static final int
@Order
value ofhttpClientTracingObservationHandler(Tracer, HttpClientHandler)
.static final int
@Order
value ofhttpServerTracingObservationHandler(Tracer, HttpServerHandler)
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.tracing.handler.DefaultTracingObservationHandler
defaultTracingObservationHandler
(io.micrometer.tracing.Tracer tracer) io.micrometer.tracing.handler.HttpClientTracingObservationHandler
httpClientTracingObservationHandler
(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.http.HttpClientHandler httpClientHandler) io.micrometer.tracing.handler.HttpServerTracingObservationHandler
httpServerTracingObservationHandler
(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.http.HttpServerHandler httpServerHandler)
-
Field Details
-
DEFAULT_TRACING_OBSERVATION_HANDLER_ORDER
public static final int DEFAULT_TRACING_OBSERVATION_HANDLER_ORDER@Order
value ofdefaultTracingObservationHandler(Tracer)
.- See Also:
-
HTTP_SERVER_TRACING_OBSERVATION_HANDLER_ORDER
public static final int HTTP_SERVER_TRACING_OBSERVATION_HANDLER_ORDER@Order
value ofhttpServerTracingObservationHandler(Tracer, HttpServerHandler)
.- See Also:
-
HTTP_CLIENT_TRACING_OBSERVATION_HANDLER_ORDER
public static final int HTTP_CLIENT_TRACING_OBSERVATION_HANDLER_ORDER@Order
value ofhttpClientTracingObservationHandler(Tracer, HttpClientHandler)
.- See Also:
-
-
Constructor Details
-
MicrometerTracingAutoConfiguration
public MicrometerTracingAutoConfiguration()
-
-
Method Details
-
defaultTracingObservationHandler
@Bean @ConditionalOnMissingBean @ConditionalOnBean(io.micrometer.tracing.Tracer.class) @Order(2147482647) public io.micrometer.tracing.handler.DefaultTracingObservationHandler defaultTracingObservationHandler(io.micrometer.tracing.Tracer tracer) -
httpServerTracingObservationHandler
@Bean @ConditionalOnMissingBean @ConditionalOnBean({io.micrometer.tracing.Tracer.class,io.micrometer.tracing.http.HttpServerHandler.class}) @Order(1000) public io.micrometer.tracing.handler.HttpServerTracingObservationHandler httpServerTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.http.HttpServerHandler httpServerHandler) -
httpClientTracingObservationHandler
@Bean @ConditionalOnMissingBean @ConditionalOnBean({io.micrometer.tracing.Tracer.class,io.micrometer.tracing.http.HttpClientHandler.class}) @Order(2000) public io.micrometer.tracing.handler.HttpClientTracingObservationHandler httpClientTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.http.HttpClientHandler httpClientHandler)
-