effect-io-ai

Package: effect
Module: Layer

Layer.span

Create and add a span to the current span stack.

The span is ended when the Layer is released.

Signature

declare const span: (name: string, options?: Tracer.SpanOptions & { readonly onEnd?: ((span: Tracer.Span, exit: Exit.Exit<unknown, unknown>) => Effect.Effect<void>) | undefined; }) => Layer<Tracer.ParentSpan>

Source

Since v2.0.0