use of org.apache.camel.zipkin.ZipkinTracer in project camel by apache.
the class ClientApplication method setupCamel.
public void setupCamel(@Observes CamelContextStartingEvent event) {
// create zipkin
ZipkinTracer zipkin = new ZipkinTracer();
zipkin.setHostName("192.168.99.100");
zipkin.setPort(9410);
zipkin.addClientServiceMapping("http://localhost:9090/service1", "service1");
// capture 100% of all the events
zipkin.setRate(1.0f);
// include message bodies in the traces (not recommended for production)
zipkin.setIncludeMessageBodyStreams(true);
// register zipkin to CamelContext
zipkin.init(event.getContext());
}
Aggregations