effect-io-ai

Package: effect
Module: Effect

Effect.FunctionWithSpanOptions

Wraps a function that returns an effect with a new span for tracing.

Signature

export interface FunctionWithSpanOptions {
  readonly name: string
  readonly attributes?: Record<string, unknown> | undefined
  readonly links?: ReadonlyArray<Tracer.SpanLink> | undefined
  readonly parent?: Tracer.AnySpan | undefined
  readonly root?: boolean | undefined
  readonly context?: Context.Context<never> | undefined
  readonly kind?: Tracer.SpanKind | undefined
}

Source

Since v3.2.0