Package: @effect/opentelemetry
Module: OtelTracer
Gets the current OpenTelemetry span.
Details
This accessor works with both the official OpenTelemetry API, such as
Tracer.layer and NodeSdk.layer, and the lightweight OTLP module, such as
OtlpTracer.layer. When using OTLP, the returned span is a wrapper that
conforms to the OpenTelemetry Span interface.
Signature
declare const currentOtelSpan: Effect.Effect<Otel.Span, Cause.NoSuchElementError, never>
Since v4.0.0