@Configuration public class LoggingWebMvcConfigurer extends Object
TraceIdLoggingWebMvcInterceptor| Constructor and Description |
|---|
LoggingWebMvcConfigurer(TraceIdLoggingWebMvcInterceptor interceptor)
Constructor that accepts an
TraceIdLoggingWebMvcInterceptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(InterceptorRegistry registry) |
public 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.