Java Code Examples for io.opentracing.util.GlobalTracerTestUtil#resetGlobalTracer()

The following examples show how to use io.opentracing.util.GlobalTracerTestUtil#resetGlobalTracer() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TracingInterceptorsTest.java    From java-grpc with Apache License 2.0 5 votes vote down vote up
@Before
public void setUp() {
  GlobalTracerTestUtil.resetGlobalTracer();
  clientTracer.reset();
  serverTracer.reset();
  // register server tracer to verify active span on server side
  GlobalTracer.registerIfAbsent(serverTracer);
}
 
Example 2
Source File: MockTracingConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 3
Source File: AbstractJettyTest.java    From java-jaxrs with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void resetGlobalTracer() {
    GlobalTracerTestUtil.resetGlobalTracer();
}
 
Example 4
Source File: IntegrationTestWithPrefixOperationName.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
public @Bean MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 5
Source File: IntegrationTest.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
public @Bean MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 6
Source File: MockTracingConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 7
Source File: MockTracingConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 8
Source File: MockTracingConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 9
Source File: MockTracingConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 10
Source File: MockTracingWithoutFeignClientConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 11
Source File: MockTracingConfiguration.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 12
Source File: TracingContextPropagationStressTest.java    From smallrye-fault-tolerance with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void reset() {
    GlobalTracerTestUtil.resetGlobalTracer();
}
 
Example 13
Source File: TracingDriverTest.java    From java-jdbc with Apache License 2.0 4 votes vote down vote up
@Before
public void before() {
  GlobalTracerTestUtil.resetGlobalTracer();
}
 
Example 14
Source File: OpenTracingHelperTest.java    From java-agent with Apache License 2.0 4 votes vote down vote up
@Before
public void clearTracers() {
    GlobalTracerTestUtil.resetGlobalTracer();
    _clearHelperTracer();
}
 
Example 15
Source File: TracingClientInterceptorTest.java    From java-grpc with Apache License 2.0 4 votes vote down vote up
@Before
public void setUp() {
  GlobalTracerTestUtil.resetGlobalTracer();
  clientTracer.reset();
  TracedService.addGeeterService(grpcServer.getServiceRegistry());
}
 
Example 16
Source File: TracingServerInterceptorTest.java    From java-grpc with Apache License 2.0 4 votes vote down vote up
@Before
public void setUp() {
  GlobalTracerTestUtil.resetGlobalTracer();
  serverTracer.reset();
  client = new TracedClient(grpcServer.getChannel());
}
 
Example 17
Source File: TracingTest.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@AfterAll
public static void afterAll() {
    GlobalTracerTestUtil.resetGlobalTracer();
}
 
Example 18
Source File: MockTracingConfiguration.java    From java-spring-rabbitmq with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 19
Source File: TracerConfig.java    From java-spring-rabbitmq with Apache License 2.0 4 votes vote down vote up
@Bean
public MockTracer mockTracer() {
  GlobalTracerTestUtil.resetGlobalTracer();
  return new MockTracer();
}
 
Example 20
Source File: TracingContextPropagationTest.java    From smallrye-fault-tolerance with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void reset() {
    GlobalTracerTestUtil.resetGlobalTracer();
}