use of io.jaegertracing.crossdock.resources.behavior.TraceBehavior in project jaeger-client-java by jaegertracing.
the class TraceBehaviorResourceTest method setUp.
@Before
public void setUp() throws Exception {
Configuration configuration = new Configuration(SERVICE_NAME).withSampler(new SamplerConfiguration().withType(ConstSampler.TYPE).withParam(0)).withReporter(new ReporterConfiguration().withLogSpans(true));
server = new JerseyServer("127.0.0.1", port, configuration, Collections.singletonList(new TraceBehaviorResource(configuration.getTracer())));
hostPort = String.format("127.0.0.1:%d", port);
behavior = new TraceBehavior(server.getTracer());
}
Aggregations