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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    beginEventSpan(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint, Op op)
     
    protected void
    beginProcessorSpan(org.apache.camel.Exchange exchange, String processorName)
     
    org.apache.camel.spi.RoutePolicy
    createRoutePolicy(org.apache.camel.CamelContext camelContext, String routeId, org.apache.camel.NamedNode route)
     
    protected void
     
    protected void
     
    protected void
    endEventSpan(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
     
    protected void
    endProcessorSpan(org.apache.camel.Exchange exchange, String processorName)
     
    boolean
    exclude(String endpointUri, org.apache.camel.CamelContext context)
     
    org.apache.camel.CamelContext
     
     
     
    void
    init(org.apache.camel.CamelContext camelContext)
    Registers this Tracer on the CamelContext if not already registered.
    protected abstract void
     
    boolean
     
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     
    void
    setExcludePatterns(String excludePatterns)
     
    void
     
    void
    setTraceProcessors(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, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods 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:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
    • getExcludePatterns

      @ManagedAttribute public String getExcludePatterns()
    • setExcludePatterns

      public void setExcludePatterns(String excludePatterns)
    • isTraceProcessors

      @ManagedAttribute public boolean isTraceProcessors()
    • setTraceProcessors

      public void setTraceProcessors(boolean traceProcessors)
    • getSpanLifecycleManager

      public SpanLifecycleManager getSpanLifecycleManager()
    • setSpanLifecycleManager

      public void setSpanLifecycleManager(SpanLifecycleManager spanLifecycleManager)
    • createRoutePolicy

      public org.apache.camel.spi.RoutePolicy createRoutePolicy(org.apache.camel.CamelContext camelContext, String routeId, org.apache.camel.NamedNode route)
      Specified by:
      createRoutePolicy in interface org.apache.camel.spi.RoutePolicyFactory
    • init

      public void init(org.apache.camel.CamelContext camelContext)
      Registers this Tracer on the CamelContext if not already registered.
    • doInit

      protected void doInit()
      Overrides:
      doInit in class org.apache.camel.support.service.BaseService
    • doShutdown

      protected void doShutdown()
      Overrides:
      doShutdown in class org.apache.camel.support.service.BaseService
    • exclude

      public boolean exclude(String endpointUri, org.apache.camel.CamelContext context)
    • 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