@Test public void getSpan_should_retrieve_a_span_from_the_currentContext(TestContext ctx) { Span span = tracer.buildSpan("test").start(); vertx.runOnContext(ignored -> { assertNull(OpenTracingUtil.getSpan()); Context context = Vertx.currentContext(); context.putLocal(ACTIVE_SPAN, span); assertSame(span, OpenTracingUtil.getSpan()); }); }
public static Span getSpan() { Context c = Vertx.currentContext(); return c == null ? null : c.getLocal(ACTIVE_SPAN); }
OpenTracingUtil { public static Span getSpan() { Context c = Vertx.currentContext(); return c == null ? null : c.getLocal(ACTIVE_SPAN); } }
OpenTracingUtil { public static Span getSpan() { Context c = Vertx.currentContext(); return c == null ? null : c.getLocal(ACTIVE_SPAN); }  }
OpenTracingUtil { public static Span getSpan() { Context c = Vertx.currentContext(); return c == null ? null : c.getLocal(ACTIVE_SPAN); }  static Span getSpan(); static void setSpan(Span span); static void clearContext(); }
OpenTracingUtil { public static Span getSpan() { Context c = Vertx.currentContext(); return c == null ? null : c.getLocal(ACTIVE_SPAN); }  static Span getSpan(); static void setSpan(Span span); static void clearContext();  }