Options
All
  • Public
  • Public/Protected
  • All
Menu

Singleton object which represents the entry point to the OpenTelemetry Tracing API

since

1.0.0

Hierarchy

  • TraceAPI

Index

Properties

deleteSpan: ((context: Context) => Context) = deleteSpan

Type declaration

    • Remove current span stored in the context

      Parameters

      • context: Context

        context to delete span from

      Returns Context

getActiveSpan: (() => Span | undefined) = getActiveSpan

Type declaration

    • (): Span | undefined
    • Gets the span from the current context, if one exists.

      Returns Span | undefined

getSpan: ((context: Context) => Span | undefined) = getSpan

Type declaration

    • Return the span if one exists

      Parameters

      • context: Context

        context to get span from

      Returns Span | undefined

getSpanContext: ((context: Context) => SpanContext | undefined) = getSpanContext

Type declaration

isSpanContextValid: ((spanContext: SpanContext) => boolean) = isSpanContextValid

Type declaration

setSpan: ((context: Context, span: Span) => Context) = setSpan

Type declaration

setSpanContext: ((context: Context, spanContext: SpanContext) => Context) = setSpanContext

Type declaration

wrapSpanContext: ((spanContext: SpanContext) => Span) = wrapSpanContext

Type declaration

Methods

  • disable(): void
  • getTracer(name: string, version?: string): Tracer
  • Returns a tracer from the global tracer provider.

    Parameters

    • name: string
    • Optional version: string

    Returns Tracer

Generated using TypeDoc