admin管理员组

文章数量:1401291

I am trying to enable x ray in webflux spring application, I am able generate or traverse trace id through header, but the aren't getting added in logs. I have added a webfilter and included the following code, could you please help me if I need to enable additional things for it to appear in logs?

Segment segment = AWSXRay.beginSegment("service");
MDC.put("traceId", segment.getTraceId());

本文标签: javaHow to enable AWS X ray in Webflux spring applicationStack Overflow