Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.1 KB

tracing.adoc

File metadata and controls

26 lines (22 loc) · 1.1 KB

Tracing

Decaton can integrate with distributed tracing frameworks so that you can associate the processing of a message with the component that originally sent that message. This is implemented via the TracingProvider interface. Note that you will generally also need a custom KafkaProducerSupplier that records trace information (e.g. in a Kafka header), both in the component that produces original messages and in any RetryConfig that you are using.

Currently the only implementation is BraveTracingProvider, which integrates with OpenZipkin Brave. It should be combined with a KafkaProducerSupplier that supplies a TracingProducer

Example

TracingMain.java
...
SubscriptionBuilder.newBuilder("tracing-key-processor")
                   .enableTracing(
                           new BraveTracingProvider())
...