Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

fix withSpanScoped ending span #673

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/poor-knives-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/io": patch
---

fix withSpanScoped ending span
2 changes: 1 addition & 1 deletion src/internal/fiberRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3366,7 +3366,7 @@ export const withSpanScoped = (
}
): Effect.Effect<Scope.Scope, never, void> =>
core.flatMap(
internalEffect.makeSpan(name, options),
useSpanScoped(name, options),
(span) =>
fiberRefLocallyScopedWith(
core.currentTracerSpan,
Expand Down