Search in sources :

Example 1 with JaegerTracer

use of org.wso2.carbon.apimgt.tracing.JaegerTracer 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);
    }
}
Also used : LogTracer(org.wso2.carbon.apimgt.tracing.LogTracer) ZipkinTracer(org.wso2.carbon.apimgt.tracing.ZipkinTracer) OpenTracer(org.wso2.carbon.apimgt.tracing.OpenTracer) BundleContext(org.osgi.framework.BundleContext) JaegerTracer(org.wso2.carbon.apimgt.tracing.JaegerTracer) TracingService(org.wso2.carbon.apimgt.tracing.TracingService) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

BundleContext (org.osgi.framework.BundleContext)1 Activate (org.osgi.service.component.annotations.Activate)1 JaegerTracer (org.wso2.carbon.apimgt.tracing.JaegerTracer)1 LogTracer (org.wso2.carbon.apimgt.tracing.LogTracer)1 OpenTracer (org.wso2.carbon.apimgt.tracing.OpenTracer)1 TracingService (org.wso2.carbon.apimgt.tracing.TracingService)1 ZipkinTracer (org.wso2.carbon.apimgt.tracing.ZipkinTracer)1