public final class ActiveSpanManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ActiveSpanManager.Holder
Simple holder for the currently active span and an optional reference to
the parent holder.
|
Modifier and Type | Method and Description |
---|---|
static void |
activate(org.apache.camel.Exchange exchange,
io.opentracing.Span span)
This method activates the supplied span for the supplied exchange.
|
static void |
deactivate(org.apache.camel.Exchange exchange)
This method deactivates an existing active span associated with the
supplied exchange.
|
static io.opentracing.Span |
getSpan(org.apache.camel.Exchange exchange)
This method returns the current active span associated with the
exchange.
|
public static io.opentracing.Span getSpan(org.apache.camel.Exchange exchange)
exchange
- The exchangepublic static void activate(org.apache.camel.Exchange exchange, io.opentracing.Span span)
exchange
- The exchangespan
- The spanpublic static void deactivate(org.apache.camel.Exchange exchange)
exchange
- The exchangeApache Camel