Search in sources :

Example 1 with TraceBehavior

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());
}
Also used : ReporterConfiguration(io.jaegertracing.Configuration.ReporterConfiguration) Configuration(io.jaegertracing.Configuration) SamplerConfiguration(io.jaegertracing.Configuration.SamplerConfiguration) JerseyServer(io.jaegertracing.crossdock.JerseyServer) TraceBehavior(io.jaegertracing.crossdock.resources.behavior.TraceBehavior) SamplerConfiguration(io.jaegertracing.Configuration.SamplerConfiguration) ReporterConfiguration(io.jaegertracing.Configuration.ReporterConfiguration) Before(org.junit.Before)

Aggregations

Configuration (io.jaegertracing.Configuration)1 ReporterConfiguration (io.jaegertracing.Configuration.ReporterConfiguration)1 SamplerConfiguration (io.jaegertracing.Configuration.SamplerConfiguration)1 JerseyServer (io.jaegertracing.crossdock.JerseyServer)1 TraceBehavior (io.jaegertracing.crossdock.resources.behavior.TraceBehavior)1 Before (org.junit.Before)1