@Deprecated public class TraceIdLoggingWebMvcInterceptor extends TraceIdLoggingWebMvcInterceptor
HandlerInterceptor
that extracts the request
trace ID from the "x-cloud-trace-context" HTTP header and stores it in a thread-local
using TraceIdLoggingEnhancer.setCurrentTraceId(java.lang.String)
.
The TraceIdLoggingEnhancer
can then be used in a logging appender to add the
trace ID metadata to log messages.
Constructor and Description |
---|
TraceIdLoggingWebMvcInterceptor(TraceIdExtractor extractor)
Deprecated.
|
afterCompletion, getTraceIdExtractor, preHandle
public TraceIdLoggingWebMvcInterceptor(TraceIdExtractor extractor)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.