Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
wip
  • Loading branch information
tim-smart committed Dec 10, 2025
commit e4f3bac5341ea718e4d8d976ac2735e6d71ce854
10 changes: 3 additions & 7 deletions packages/opentelemetry/src/internal/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,9 @@ const makeOtelSpan = (span: EffectTracer.Span, clock: Clock.Clock): OtelApi.Span
return self
},
setStatus(status) {
if (span.status._tag === "Started" || status.code === OtelApi.SpanStatusCode.UNSET) {
return self
}
exit = OtelApi.SpanStatusCode.OK
? Exit.void
: Exit.die(status.message ?? "Unknown error")
exit = OtelApi.SpanStatusCode.ERROR
? Exit.die(status.message ?? "Unknown error")
: Exit.void
return self
},
updateName: () => self,
Expand Down Expand Up @@ -343,7 +340,6 @@ export const currentOtelSpan: Effect.Effect<OtelApi.Span, Cause.NoSuchElementExc
})
)


/** @internal */
export const layerGlobalProvider = Layer.sync(
TracerProvider,
Expand Down
Loading