Search in sources :

Example 1 with ZipkinV2ReporterFactory

use of org.apache.synapse.aspects.flow.statistics.opentracing.management.helpers.zipkin.ZipkinV2ReporterFactory in project wso2-synapse by wso2.

the class OpenTracingManagerHolder method loadZipkinConfigurations.

/**
 * Loads Zipkin configurations required for the OpenTracingManager.
 *
 * @param zipkinBackendURL
 */
public static void loadZipkinConfigurations(String zipkinBackendURL) {
    ZipkinV2ReporterFactory factory = new ZipkinV2ReporterFactory(zipkinBackendURL);
    ConstSampler sampler = new ConstSampler(true);
    openTracingManager = new JaegerTracingManager(sampler, factory.getReporter());
}
Also used : JaegerTracingManager(org.apache.synapse.aspects.flow.statistics.opentracing.management.JaegerTracingManager) ConstSampler(io.jaegertracing.internal.samplers.ConstSampler) ZipkinV2ReporterFactory(org.apache.synapse.aspects.flow.statistics.opentracing.management.helpers.zipkin.ZipkinV2ReporterFactory)

Aggregations

ConstSampler (io.jaegertracing.internal.samplers.ConstSampler)1 JaegerTracingManager (org.apache.synapse.aspects.flow.statistics.opentracing.management.JaegerTracingManager)1 ZipkinV2ReporterFactory (org.apache.synapse.aspects.flow.statistics.opentracing.management.helpers.zipkin.ZipkinV2ReporterFactory)1