wuwen5 commented on PR #788:
URL: https://github.com/apache/skywalking-java/pull/788#issuecomment-3945621174
> there is no pre condition requiring an entry span start a redis access.
Sure, that’s correct. My earlier description was indeed incorrect.
What I intended to convey is that currently, multiple exit spans may each
start their own independent traces, but they cannot correlate with one
another—they remain isolated. To properly link them, an external (parent) span
is needed. However, I haven't yet found a suitable injection point to establish
this correlation. At the very least, creating a local span at the current
`isActive()` location doesn't resolve the issue.
I've found that it seems difficult to achieve this solely within the
`Lettuce-plugin`; it requires an outer-layer interception.
However, users can a toolkit to achieve this correlation, for instance by
manually creating and injecting a parent span.
e.g.
```
Tracer.createLocalSpan("UserReactiveLocalSpan");
Mono<String> result = reactiveCommands.get("key")
.then(Flux.concat(
reactiveCommands.set("key0", "value0"),
reactiveCommands.set("key1", "value1")
).then())
.thenReturn("Success");
result.block();
Tracer.stopSpan();
```
--
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]