Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Tracer Interceptor

Warning

The Tracer Interceptor Implementing custom tracing via TracingInterceptor has been deprecated and will be disabled/not-functioning from Camel 2.20 onwards. If you enable tracing via camelContext.setTracing(true) then Camel uses a different implementation internally to conduct the tracing. This newer implementation works faster and has less memory footprint. Custom tracers can still be implemented via InterceptStrategy, or EventNotifier etc.

...

. However turning tracing on via setTracing(true) is okay.

 

Camel's tracer interceptor can be used for logging, by default at the INFO level, a route's execution. The tracer is an instance of org.apache.camel.spi.InterceptStrategy. It can be applied to either a DefaultCamelContext or a SpringCamelContext to ensure that there is a TracerInterceptor created for every node in the route. The tracer's logging can be enabled/disabled dynamically by calling its setEnabled method.

...