Skip to content

Commit ebe2e52

Browse files
Ensure Devtools Tracer does not cut off span options (#5864)
1 parent cfdd411 commit ebe2e52

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/spotty-bats-care.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/experimental": patch
3+
---
4+
5+
Ensure Devtools Tracer does not cut off span options

packages/experimental/src/DevTools/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ export const makeTracer: Effect.Effect<Tracer.Tracer, never, Client> = Effect.ge
174174
const currentTracer = yield* Effect.tracer
175175

176176
return Tracer.make({
177-
span(name, parent, context, links, startTime, kind) {
178-
const span = currentTracer.span(name, parent, context, links, startTime, kind)
177+
span(name, parent, context, links, startTime, kind, options) {
178+
const span = currentTracer.span(name, parent, context, links, startTime, kind, options)
179179
client.unsafeAddSpan(span)
180180
const oldEvent = span.event
181181
span.event = function(this: any, name, startTime, attributes) {

0 commit comments

Comments
 (0)