Axon Tracing span linking

Hello everyone,

I have a question regarding the span linking mechanism mentioned in the documentation.

Our goal would be to have all the spans from the CommandBus and the related Saga under the same trace or at least all the related Saga spans under one trace.

The current behavior is that we see an individual trace for the @CommandHandler and for each @SagaEventHandler.


We use Spring Boot 3.1.7 and Axon BOM 4.9.2

Thank you!

You should be able to implement a SagaManagerSpanFactory to change this. And set the new class using the defaultSagaManagerSpanFactory on the Configurer. By default it will open a new span on saga creation and invocation.


Thank you, I will try with the latest version.