io.vertx.tracing.opentracing

## Class OpenTracingUtil

- java.lang.Object
- - io.vertx.tracing.opentracing.OpenTracingUtil

-     public final class OpenTracingUtil
      extends Object

  OpenTracingContext adds helpers for associating and disassociating spans with the current `Context`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OpenTracingUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `clearContext()` Remove any active span on the context.
    `static io.opentracing.Span` | `getSpan()` Get the active span from the current `Context`
    `static void` | `setSpan(io.opentracing.Span span)` Set the span as active on the context.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OpenTracingUtil

          public OpenTracingUtil()

  - ### Method Detail

    - #### getSpan

          public static io.opentracing.Span getSpan()

      Get the active span from the current `Context`
      Returns:
        a `Span` or null

    - #### setSpan

          public static void setSpan(io.opentracing.Span span)

      Set the span as active on the context.
      Parameters:
        `span` - the span to associate with the context.

    - #### clearContext

          public static void clearContext()

      Remove any active span on the context.

Copyright © 2022 Eclipse. All rights reserved.