|
|
@@ -15,7 +15,7 @@ import org.slf4j.MDC;
|
|
|
public class TraceIdFilter implements Filter {
|
|
|
@Override
|
|
|
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
|
|
|
- RpcContext rpcContext = RpcContext.getContext();
|
|
|
+ RpcServiceContext rpcContext = RpcContext.getServiceContext();
|
|
|
String traceId;
|
|
|
if (rpcContext.isConsumerSide()) {
|
|
|
traceId = MDC.get("traceId");
|