use of io.opencensus.trace.export.SpanExporter in project instrumentation-java by census-instrumentation.
the class CensusSpringAspectTest method teardown.
@After
public void teardown() {
SpanExporter exporter = Tracing.getExportComponent().getSpanExporter();
exporter.unregisterHandler("testing");
}
use of io.opencensus.trace.export.SpanExporter in project instrumentation-java by census-instrumentation.
the class TraceWebAsyncClientAutoConfigurationTest method setup.
@Before
public void setup() {
handler = new TestHandler();
SpanExporter exporter = Tracing.getExportComponent().getSpanExporter();
exporter.registerHandler("testing", handler);
TraceParams params = Tracing.getTraceConfig().getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build();
Tracing.getTraceConfig().updateActiveTraceParams(params);
}
use of io.opencensus.trace.export.SpanExporter in project instrumentation-java by census-instrumentation.
the class HttpServletFilterIntegrationTests method setup.
@Before
@Override
public void setup() {
super.setup();
handler = new TestHandler();
SpanExporter exporter = Tracing.getExportComponent().getSpanExporter();
exporter.registerHandler("testing", handler);
TraceParams params = Tracing.getTraceConfig().getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build();
Tracing.getTraceConfig().updateActiveTraceParams(params);
}
use of io.opencensus.trace.export.SpanExporter in project instrumentation-java by census-instrumentation.
the class HttpServletFilterIntegrationTests method teardown.
@After
public void teardown() {
SpanExporter exporter = Tracing.getExportComponent().getSpanExporter();
exporter.unregisterHandler("testing");
}
use of io.opencensus.trace.export.SpanExporter in project instrumentation-java by census-instrumentation.
the class CensusSpringAspectTest method setup.
@Before
public void setup() {
handler = new TestHandler();
SpanExporter exporter = Tracing.getExportComponent().getSpanExporter();
exporter.registerHandler("testing", handler);
TraceParams params = Tracing.getTraceConfig().getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build();
Tracing.getTraceConfig().updateActiveTraceParams(params);
}
Aggregations