github Effect-TS/effect @effect/opentelemetry@0.37.5

4 hours ago

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
    )

Don't miss a new effect release

NewReleases is sending notifications on new releases.