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 37691cd commit 2ff6337Copy full SHA for 2ff6337
packages/core/src/baseclient.ts
@@ -518,7 +518,9 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
518
if (event.spans) {
519
normalized.spans = event.spans.map(span => {
520
// We cannot use the spread operator on span here because that overwrites the `toJSON` method
521
- span.data = normalize(span.data, depth, maxBreadth);
+ if (span.data) {
522
+ span.data = normalize(span.data, depth, maxBreadth);
523
+ }
524
return span;
525
});
526
}
0 commit comments