Tracer overview
Added in v1.0.0
Table of contents
accessors
currentOtelSpan
Signature
export declare const currentOtelSpan: Effect<Otel.Span, NoSuchElementException>
Added in v1.0.0
constructors
make
Signature
export declare const make: Effect<EffectTracer, never, OtelTracer>
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<OtelTracer, never, OtelTracerProvider | Resource>
Added in v1.0.0
layerGlobal
Signature
export declare const layerGlobal: Layer<OtelTracer, never, Resource>
Added in v1.0.0
layerGlobalTracer
Signature
export declare const layerGlobalTracer: Layer<OtelTracer, never, Resource>
Added in v1.0.0
layerTracer
Signature
export declare const layerTracer: Layer<OtelTracer, never, OtelTracerProvider | Resource>
Added in v1.0.0
layerWithoutOtelTracer
Signature
export declare const layerWithoutOtelTracer: Layer<never, never, OtelTracer>
Added in v1.0.0
propagation
withSpanContext
Set the effect’s parent span from the given opentelemetry SpanContext
.
This is handy when you set up OpenTelemetry outside of Effect and want to attach to a parent span.
Signature
export declare const withSpanContext: {
(spanContext: Otel.SpanContext): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, Exclude<R, ParentSpan>>
<A, E, R>(effect: Effect<A, E, R>, spanContext: Otel.SpanContext): Effect<A, E, Exclude<R, ParentSpan>>
}
Added in v1.0.0
tags
OtelTraceFlags
Signature
export declare const OtelTraceFlags: Tag<OtelTraceFlags, Otel.TraceFlags>
Added in v1.0.0
OtelTraceFlags (interface)
Signature
export interface OtelTraceFlags {
readonly _: unique symbol
}
Added in v1.0.0
OtelTraceState
Signature
export declare const OtelTraceState: Tag<OtelTraceState, Otel.TraceState>
Added in v1.0.0
OtelTraceState (interface)
Signature
export interface OtelTraceState {
readonly _: unique symbol
}
Added in v1.0.0
OtelTracer
Signature
export declare const OtelTracer: Tag<OtelTracer, Otel.Tracer>
Added in v1.0.0
OtelTracer (interface)
Signature
export interface OtelTracer {
readonly _: unique symbol
}
Added in v1.0.0
OtelTracerProvider
Signature
export declare const OtelTracerProvider: Tag<OtelTracerProvider, Otel.TracerProvider>
Added in v1.0.0
OtelTracerProvider (interface)
Signature
export interface OtelTracerProvider {
readonly _: unique symbol
}
Added in v1.0.0