yqw570994511 commented on PR #736: URL: https://github.com/apache/skywalking-java/pull/736#issuecomment-2533630404
> I think the issue seems to be repetitive with this #539 , and we can support it in this way. > > https://github.com/apache/skywalking-java/blob/main/docs/en/setup/service-agent/java-agent/Application-toolkit-webflux.md#fetch-trace-context-relative-ids > > ``` > @Override > public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain){ > // fetch trace ID > String traceId = WebFluxSkyWalkingTraceContext.traceId(exchange); > > // fetch segment ID > String segmentId = WebFluxSkyWalkingTraceContext.segmentId(exchange); > > // fetch span ID > int spanId = WebFluxSkyWalkingTraceContext.spanId(exchange); > > return chain.filter(exchange); > } > ``` Thank you, I'll try this way -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
