Class AbstractSpanDecorator
java.lang.Object
org.apache.camel.telemetry.decorators.AbstractSpanDecorator
- All Implemented Interfaces:
SpanDecorator
- Direct Known Subclasses:
AbstractHttpSpanDecorator,AbstractInternalSpanDecorator,AbstractMessagingSpanDecorator,CqlSpanDecorator,ElasticsearchSpanDecorator,FileSpanDecorator,JdbcSpanDecorator,LogSpanDecorator,MongoDBSpanDecorator,ProcessorSpanDecorator,SqlSpanDecorator,TimerSpanDecorator
An abstract base implementation of the
SpanDecorator interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterTracingEvent(Span span, org.apache.camel.Exchange exchange) voidbeforeTracingEvent(Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) getExtractor(org.apache.camel.Exchange exchange) getInjector(org.apache.camel.Exchange exchange) getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) static StringstripSchemeAndOptions(String endpointUri) static StringstripSchemeAndOptions(org.apache.camel.Endpoint endpoint) This method removes the scheme, any leading slash characters and options from the supplied URI.toQueryParameters(String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.telemetry.SpanDecorator
getComponent, getComponentClassName
-
Constructor Details
-
AbstractSpanDecorator
public AbstractSpanDecorator()
-
-
Method Details
-
stripSchemeAndOptions
This method removes the scheme, any leading slash characters and options from the supplied URI. This is intended to extract a meaningful name from the URI that can be used in situations, such as the operation name.- Parameters:
endpoint- The endpoint- Returns:
- The stripped value from the URI
-
stripSchemeAndOptions
-
toQueryParameters
-
getOperationName
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) - Specified by:
getOperationNamein interfaceSpanDecorator
-
beforeTracingEvent
public void beforeTracingEvent(Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) - Specified by:
beforeTracingEventin interfaceSpanDecorator
-
afterTracingEvent
- Specified by:
afterTracingEventin interfaceSpanDecorator
-
getExtractor
- Specified by:
getExtractorin interfaceSpanDecorator
-
getInjector
- Specified by:
getInjectorin interfaceSpanDecorator
-