@Configuration public class LoggingWebMvcConfigurer extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
TraceIdLoggingWebMvcInterceptor| Constructor and Description |
|---|
LoggingWebMvcConfigurer(TraceIdLoggingWebMvcInterceptor interceptor)
Constructor that accepts an
TraceIdLoggingWebMvcInterceptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic LoggingWebMvcConfigurer(@Autowired(required=false)
TraceIdLoggingWebMvcInterceptor interceptor)
TraceIdLoggingWebMvcInterceptor. If the given
interceptor is null, then a default CompositeTraceIdExtractor is used that
checks using XCloudTraceIdExtractor followed by the ZipkinTraceIdExtractor.interceptor - The interceptor to use with this configurer. If not provided
a TraceIdLoggingWebMvcInterceptor is used with the trace ID extractor described above.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.