Package org.apache.camel.telemetry
Class Tracer
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.telemetry.Tracer
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.CamelTracingService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.RoutePolicyFactory,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
public abstract class Tracer
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.CamelTracingService, org.apache.camel.spi.RoutePolicyFactory, org.apache.camel.StaticService
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeginEventSpan(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, Op op) protected voidbeginProcessorSpan(org.apache.camel.Exchange exchange, String processorName) org.apache.camel.spi.RoutePolicycreateRoutePolicy(org.apache.camel.CamelContext camelContext, String routeId, org.apache.camel.NamedNode route) protected voiddoInit()protected voidprotected voidendEventSpan(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) protected voidendProcessorSpan(org.apache.camel.Exchange exchange, String processorName) booleanorg.apache.camel.CamelContextvoidinit(org.apache.camel.CamelContext camelContext) Registers thisTraceron theCamelContextif not already registered.protected abstract voidbooleanvoidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetExcludePatterns(String excludePatterns) voidsetSpanLifecycleManager(SpanLifecycleManager spanLifecycleManager) voidsetTraceProcessors(boolean traceProcessors) Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
Tracer
public Tracer()
-
-
Method Details
-
initTracer
protected abstract void initTracer() -
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getExcludePatterns
-
setExcludePatterns
-
isTraceProcessors
@ManagedAttribute public boolean isTraceProcessors() -
setTraceProcessors
public void setTraceProcessors(boolean traceProcessors) -
getSpanLifecycleManager
-
setSpanLifecycleManager
-
createRoutePolicy
public org.apache.camel.spi.RoutePolicy createRoutePolicy(org.apache.camel.CamelContext camelContext, String routeId, org.apache.camel.NamedNode route) - Specified by:
createRoutePolicyin interfaceorg.apache.camel.spi.RoutePolicyFactory
-
init
public void init(org.apache.camel.CamelContext camelContext) Registers thisTraceron theCamelContextif not already registered. -
doInit
protected void doInit()- Overrides:
doInitin classorg.apache.camel.support.service.BaseService
-
doShutdown
protected void doShutdown()- Overrides:
doShutdownin classorg.apache.camel.support.service.BaseService
-
exclude
-
beginEventSpan
protected void beginEventSpan(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, Op op) throws Exception - Throws:
Exception
-
beginProcessorSpan
protected void beginProcessorSpan(org.apache.camel.Exchange exchange, String processorName) throws Exception - Throws:
Exception
-
endEventSpan
protected void endEventSpan(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) throws Exception - Throws:
Exception
-
endProcessorSpan
protected void endProcessorSpan(org.apache.camel.Exchange exchange, String processorName) throws Exception - Throws:
Exception
-