@Configuration(proxyBeanMethods=false)
@ConditionalOnProperty(value="spring.sleuth.web.enabled",
matchIfMissing=true)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnBean(value=brave.http.HttpTracing.class)
@AutoConfigureAfter(value=TraceHttpAutoConfiguration.class)
@Import(value=brave.spring.webmvc.SpanCustomizingAsyncHandlerInterceptor.class)
public class TraceWebServletAutoConfiguration
extends Object
Auto-configuration enables tracing to HTTP requests.| Modifier and Type | Class and Description |
|---|---|
protected static class |
TraceWebServletAutoConfiguration.TraceWebMvcAutoConfiguration
Nested config that configures Web MVC if it's present (without adding a runtime
dependency to it).
|
| Modifier and Type | Field and Description |
|---|---|
static int |
TRACING_FILTER_ORDER
Default filter order for the Http tracing filter.
|
| Constructor and Description |
|---|
TraceWebServletAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.web.servlet.FilterRegistrationBean |
exceptionThrowingFilter(SleuthWebProperties webProperties) |
org.springframework.boot.web.servlet.FilterRegistrationBean |
traceWebFilter(org.springframework.beans.factory.BeanFactory beanFactory,
SleuthWebProperties webProperties) |
brave.servlet.TracingFilter |
tracingFilter(brave.http.HttpTracing tracing) |
public static final int TRACING_FILTER_ORDER
@Bean
public org.springframework.boot.web.servlet.FilterRegistrationBean traceWebFilter(org.springframework.beans.factory.BeanFactory beanFactory,
SleuthWebProperties webProperties)
@Bean
@ConditionalOnProperty(value="spring.sleuth.web.exception-logging-filter-enabled",
matchIfMissing=true)
public org.springframework.boot.web.servlet.FilterRegistrationBean exceptionThrowingFilter(SleuthWebProperties webProperties)
@Bean @ConditionalOnMissingBean public brave.servlet.TracingFilter tracingFilter(brave.http.HttpTracing tracing)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.