Function
currentSpanFromFiber
(fiber: Fiber.RuntimeFiber<A, E>)
Source from the content-addressed store, hash-verified
| 3134 | |
| 3135 | /** @internal */ |
| 3136 | export const currentSpanFromFiber = <A, E>(fiber: Fiber.RuntimeFiber<A, E>): Option.Option<Tracer.Span> => { |
| 3137 | const span = fiber.currentSpan |
| 3138 | return span !== undefined && span._tag === "Span" ? Option.some(span) : Option.none() |
| 3139 | } |
| 3140 | |
| 3141 | const NoopSpanProto: Omit<Tracer.Span, "parent" | "name" | "context"> = { |
| 3142 | _tag: "Span", |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…