Skip to main content Link Search Menu Expand Document (external link)

Tracer overview

Added in v1.0.0


Table of contents


accessors

currentOtelSpan

Signature

export declare const currentOtelSpan: Effect<never, NoSuchElementException, Otel.Span>

Added in v1.0.0

constructors

make

Signature

export declare const make: Effect<Otel.Tracer, never, EffectTracer>

Added in v1.0.0

makeExternalSpan

Signature

export declare const makeExternalSpan: (options: {
  readonly traceId: string
  readonly spanId: string
  readonly traceFlags?: number | undefined
  readonly traceState?: string | Otel.TraceState | undefined
}) => ExternalSpan

Added in v1.0.0

layers

layer

Signature

export declare const layer: Layer<Resource | Otel.TracerProvider, never, never>

Added in v1.0.0

layerGlobal

Signature

export declare const layerGlobal: Layer<Resource, never, never>

Added in v1.0.0

layerGlobalTracer

Signature

export declare const layerGlobalTracer: Layer<Resource, never, Otel.Tracer>

Added in v1.0.0

layerTracer

Signature

export declare const layerTracer: Layer<Resource | Otel.TracerProvider, never, Otel.Tracer>

Added in v1.0.0

tags

TraceFlags

Signature

export declare const TraceFlags: Tag<Otel.TraceFlags, Otel.TraceFlags>

Added in v1.0.0

TraceState

Signature

export declare const TraceState: Tag<Otel.TraceState, Otel.TraceState>

Added in v1.0.0

Tracer

Signature

export declare const Tracer: Tag<Otel.Tracer, Otel.Tracer>

Added in v1.0.0

TracerProvider

Signature

export declare const TracerProvider: Tag<Otel.TracerProvider, Otel.TracerProvider>

Added in v1.0.0