@Test public void testGetTracer_No() { Tracer tracer = Trace.getTracer(); TraceContext context = tracer.startSpan("hello"); assertInvalid(context.getHandle().getCurrentSpanContext()); tracer.annotateSpan(context, Labels.builder().build()); tracer.setStackTrace(context, StackTrace.builder().build()); tracer.endSpan(context); context = tracer.startSpan("hello", new StartSpanOptions()); assertInvalid(context.getHandle().getCurrentSpanContext()); tracer.endSpan(context, new EndSpanOptions()); }
public static Tracer getTracer() { return service.getTracer(); }
Trace { public static Tracer getTracer() { return service.getTracer(); } }
Trace { public static Tracer getTracer() { return service.getTracer(); }  }
Trace { public static Tracer getTracer() { return service.getTracer(); }  static void init(TraceService traceService); static Tracer getTracer(); static SpanContextHandler getSpanContextHandler(); static SpanContextFactory getSpanContextFactory(); }
Trace { public static Tracer getTracer() { return service.getTracer(); }  static void init(TraceService traceService); static Tracer getTracer(); static SpanContextHandler getSpanContextHandler(); static SpanContextFactory getSpanContextFactory();  }