We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087fe97 commit 17af3a0Copy full SHA for 17af3a0
packages/core/src/baseclient.ts
@@ -519,7 +519,9 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
519
if (event.spans) {
520
normalized.spans = event.spans.map(span => {
521
// We cannot use the spread operator on span here because that overwrites the `toJSON` method
522
- span.data = normalize(span.data, depth, maxBreadth);
+ if (span.data) {
523
+ span.data = normalize(span.data, depth, maxBreadth);
524
+ }
525
return span;
526
});
527
}
0 commit comments