Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ShimTracer

Implements

Index

Constructors

Properties

active: boolean = false
activeTraceParams: TraceParams = {}
eventListeners: SpanEventListener[] = []
logger: Logger = diag
propagation: Propagation = shimPropagation
sampler: Sampler = ...

Noop implementations

Accessors

  • get currentRootSpan(): Span

Methods

  • clearCurrentTrace(): void
  • onEndSpan(): void
  • onStartSpan(): void
  • registerSpanEventListener(): void
  • setCurrentRootSpan(): void
  • startRootSpan<T>(options: TraceOptions, fn: ((root: Span) => T)): T
  • Starts a root span.

    Type Parameters

    • T

    Parameters

    • options: TraceOptions

      A TraceOptions object to start a root span.

    • fn: ((root: Span) => T)

      A callback function to run after starting a root span.

        • Parameters

          Returns T

    Returns T

  • unregisterSpanEventListener(): void
  • wrapEmitter(emitter: EventEmitter): void

Generated using TypeDoc