Skip to content

Commit 4295727

Browse files
committed
dropUndefinedKeys
1 parent 6f4ea02 commit 4295727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/tracing/span.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ export class Span implements SpanInterface {
133133
// eslint-disable-next-line deprecation/deprecation
134134
this.instrumenter = spanContext.instrumenter || 'sentry';
135135

136-
this._attributes = {
136+
this._attributes = dropUndefinedKeys({
137137
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanContext.origin || 'manual',
138138
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: spanContext.op,
139139
...spanContext.attributes,
140-
};
140+
});
141141

142142
// eslint-disable-next-line deprecation/deprecation
143143
this._name = spanContext.name || spanContext.description;

0 commit comments

Comments
 (0)