Package: effect
Module: Effect
Returns the tracing span links currently carried in the effect context.
Details
These links are attached to spans created inside the context. Span links connect related spans without making one span the parent of another.
Example (Providing span links)
import { Effect } from "effect"
const program = Effect.gen(function*() {
// Get the current span links
const links = yield* Effect.spanLinks
console.log(`Current span has ${links.length} links`)
return links
})
Signature
declare const spanLinks: Effect<ReadonlyArray<SpanLink>, never, never>
Since v2.0.0