use of com.github.kristofa.brave.scribe.ScribeSpanCollector in project camel by apache.
the class ZipkinABCRouteScribe method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
zipkin = new ZipkinTracer();
zipkin.addClientServiceMapping("seda:a", "a");
zipkin.addClientServiceMapping("seda:b", "b");
zipkin.addClientServiceMapping("seda:c", "c");
zipkin.addServerServiceMapping("seda:a", "a");
zipkin.addServerServiceMapping("seda:b", "b");
zipkin.addServerServiceMapping("seda:c", "c");
zipkin.setSpanCollector(new ScribeSpanCollector(ip, 9410));
// attaching ourself to CamelContext
zipkin.init(context);
return context;
}
use of com.github.kristofa.brave.scribe.ScribeSpanCollector in project camel by apache.
the class ZipkinTimerRouteScribe method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
zipkin = new ZipkinTracer();
// we have one route as service
zipkin.addClientServiceMapping("seda:timer", "timer");
zipkin.addServerServiceMapping("seda:timer", "timer");
zipkin.setSpanCollector(new ScribeSpanCollector(ip, 9410));
// attaching ourself to CamelContext
zipkin.init(context);
return context;
}
use of com.github.kristofa.brave.scribe.ScribeSpanCollector in project camel by apache.
the class ZipkinMulticastRouteScribe method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
zipkin = new ZipkinTracer();
zipkin.addClientServiceMapping("seda:a", "a");
zipkin.addClientServiceMapping("seda:b", "b");
zipkin.addClientServiceMapping("seda:c", "c");
zipkin.addServerServiceMapping("seda:a", "a");
zipkin.addServerServiceMapping("seda:b", "b");
zipkin.addServerServiceMapping("seda:c", "c");
zipkin.setSpanCollector(new ScribeSpanCollector(ip, 9410));
// attaching ourself to CamelContext
zipkin.init(context);
return context;
}
Aggregations