public interface SpanDecorator
| Modifier and Type | Field and Description |
|---|---|
static String |
CAMEL_COMPONENT |
static SpanDecorator |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponent()
The camel component name associated with the decorator.
|
String |
getComponentClassName()
The camel component FQN classname associated with the decorator.
|
io.opentracing.propagation.TextMap |
getExtractAdapter(Map<String,Object> map,
boolean encoding)
This method returns the map to be used for headers extraction
when the component is receiving a communication.
|
String |
getInitiatorSpanKind()
This method returns the 'span.kind' value for use when the component
is initiating a communication.
|
io.opentracing.propagation.TextMap |
getInjectAdapter(Map<String,Object> map,
boolean encoding)
This method returns the map to be used for headers injection
when the component is receiving a communication.
|
String |
getOperationName(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method returns the operation name to use with the Span representing
this exchange and endpoint.
|
String |
getReceiverSpanKind()
This method returns the 'span.kind' value for use when the component
is receiving a communication.
|
boolean |
newSpan()
This method indicates whether the component associated with the SpanDecorator
should result in a new span being created.
|
void |
post(io.opentracing.Span span,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied span
based on the post processing of the exchange.
|
void |
pre(io.opentracing.Span span,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied span
based on the pre processing of the exchange.
|
static final String CAMEL_COMPONENT
static final SpanDecorator DEFAULT
boolean newSpan()
String getComponent()
String getComponentClassName()
String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
exchange - The exchangeendpoint - The endpointvoid pre(io.opentracing.Span span,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
span - The spanexchange - The exchangeendpoint - The endpointvoid post(io.opentracing.Span span,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
span - The spanexchange - The exchangeendpoint - The endpointString getInitiatorSpanKind()
String getReceiverSpanKind()
io.opentracing.propagation.TextMap getExtractAdapter(Map<String,Object> map, boolean encoding)
map - a map containing the objectsencoding - whether the headers are encodedio.opentracing.propagation.TextMap getInjectAdapter(Map<String,Object> map, boolean encoding)
map - a map containing the objectsencoding - whether the headers are encodedApache Camel