Skip to content

Commit d58bf5b

Browse files
committed
replace an error event with an attribute
1 parent 0786d3d commit d58bf5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/server/lib/trace/tracer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type BubbledError = Error & { bubble?: boolean }
3838

3939
const closeSpanWithError = (span: Span, error?: Error) => {
4040
if ((error as BubbledError | undefined)?.bubble === true) {
41-
span.recordException('next.bubble')
41+
span.setAttribute('next.bubble', true)
4242
} else {
4343
if (error) {
4444
span.recordException(error)

0 commit comments

Comments
 (0)