package org.stagemonitor.requestmonitor.tracing.jaeger;

import com.uber.jaeger.reporters.CompositeReporter;
import com.uber.jaeger.samplers.ConstSampler;

import org.stagemonitor.core.StagemonitorPlugin;
import org.stagemonitor.requestmonitor.RequestMonitorPlugin;
import org.stagemonitor.requestmonitor.tracing.TracerFactory;

import io.opentracing.Tracer;

public class JaegerTracerFactory extends TracerFactory {

	@Override
	public Tracer getTracer(StagemonitorPlugin.InitArguments initArguments) {
		return new com.uber.jaeger.Tracer.Builder(
				initArguments.getMeasurementSession().getApplicationName(),
				new CompositeReporter(new LoggingSpanReporter(initArguments.getPlugin(RequestMonitorPlugin.class))),
				new ConstSampler(true))
				.build();
	}
}

@@ -54,60 +54,8 @@
 r;%0A%0A
-import com.uber.jaeger.reporters.CompositeReporter;%0A
 impo
@@ -566,30 +566,8 @@
 new 
-CompositeReporter(new 
 Logg
@@ -634,17 +634,16 @@
 .class))
-)
 ,%0A%09%09%09%09ne

Remove unnecessary CompositeReporter