Skip to content

Commit

Permalink
replace an error event with an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoytenko committed Oct 11, 2023
1 parent 0786d3d commit d58bf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/lib/trace/tracer.ts
Expand Up @@ -38,7 +38,7 @@ type BubbledError = Error & { bubble?: boolean }

const closeSpanWithError = (span: Span, error?: Error) => {
if ((error as BubbledError | undefined)?.bubble === true) {
span.recordException('next.bubble')
span.setAttribute('next.bubble', true)
} else {
if (error) {
span.recordException(error)
Expand Down

0 comments on commit d58bf5b

Please sign in to comment.