Distributed tracer implementation.

Implements

Constructors

Methods

  • Wraps an async function with tracing.

    Type Parameters

    • T

    Parameters

    • name: string

      Span name

    • fn: ((span) => Promise<T>)

      Function to wrap

        • (span): Promise<T>
        • Parameters

          Returns Promise<T>

    • Optional options: SpanOptions

      Span options

    Returns Promise<T>

    Result of the function

Properties

name: string

Gets the tracer name.