use of org.wso2.carbon.apimgt.tracing.ZipkinTracer in project carbon-apimgt by wso2.
the class TracingServiceComponent method activate.
@Activate
protected void activate(ComponentContext componentContext) {
try {
log.debug("Tracing Component activated");
BundleContext bundleContext = componentContext.getBundleContext();
registration = bundleContext.registerService(OpenTracer.class, new JaegerTracer(), null);
registration = bundleContext.registerService(OpenTracer.class, new ZipkinTracer(), null);
registration = bundleContext.registerService(OpenTracer.class, new LogTracer(), null);
registration = bundleContext.registerService(TracingService.class, TracingServiceImpl.getInstance(), null);
} catch (Exception e) {
log.error("Error occured in tracing component activation", e);
}
}
Aggregations