Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Tracer

Package version

A Tracer.

Hierarchy

  • Tracer

Index

Methods

Methods

startSpan

  • Starts a new Span. Start the span without setting it on context.

    This method does NOT modify the current Context.

    example
    const span = tracer.startSpan('op');
    span.setAttribute('key', 'value');
    span.end();

    Parameters

    • name: string

      The name of the span

    • Optional options: SpanOptions

      SpanOptions used for span creation

    • Optional context: Context

      Context to use to extract parent

    Returns Span

    The newly created span

Generated using TypeDoc