Interface Tracer

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
NoopTracer

public interface Tracer extends Closeable
Tracer is the interface used to create a Span It automatically handles the context propagation between threads, tasks, nodes etc. All methods on the Tracer object are multi-thread safe.
  • Method Summary

    Modifier and Type
    Method
    Description
    startSpan(String spanName)
    Starts the Span with given name

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • startSpan

      SpanScope startSpan(String spanName)
      Starts the Span with given name
      Parameters:
      spanName - span name
      Returns:
      scope of the span, must be closed with explicit close or with try-with-resource