Sources and connectors play different roles in both Mule and distributed tracing.
In Mule, a source triggers a flow and creates the first span in its corresponding trace. Because of this role, the source must handle distributed trace context. If a trace already exists, the source must continue that trace instead of creating a new one.
Connectors propagate the current trace context to external systems outside Mule runtime. These systems can include databases, non-Mule APIs, and message queues.
The Mule runtime Java SDK supports the W3C trace context propagation standard. This standard defines a trace context that consists of a traceparent and a tracestate:
traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01
tracestate: congo=t61rcWkgMzE
This representation enables trace context propagation across systems that support the standard.