Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 01 Oct 07:26
9131e6d

Patch Changes

  • #3705 534abce Thanks @Schniz! - add withActiveSpan function to attach Effect to current Span

    This function allows you to connect the Effect spans into a parent span
    that was created outside of Effect, using the OpenTelemetry context propagation:

    Effect.gen(function* () {
      yield* Effect.sleep("100 millis").pipe(Effect.withSpan("sleep"))
      yield* Console.log("done")
    }).pipe(
      Effect.withSpan("program"),
      // This connects child spans to the current OpenTelemetry context
      Tracer.withActiveSpan
    )