Skip to content

Commit 17af3a0

Browse files
committed
Fix tests
1 parent 087fe97 commit 17af3a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/baseclient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,9 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
519519
if (event.spans) {
520520
normalized.spans = event.spans.map(span => {
521521
// We cannot use the spread operator on span here because that overwrites the `toJSON` method
522-
span.data = normalize(span.data, depth, maxBreadth);
522+
if (span.data) {
523+
span.data = normalize(span.data, depth, maxBreadth);
524+
}
523525
return span;
524526
});
525527
}

0 commit comments

Comments
 (0)