File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/core/src/tracing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ export class Span implements SpanInterface {
137
137
this . _traceId = spanContext . traceId || uuid4 ( ) ;
138
138
this . _spanId = spanContext . spanId || uuid4 ( ) . substring ( 16 ) ;
139
139
this . startTimestamp = spanContext . startTimestamp || timestampInSeconds ( ) ;
140
- this . tags = spanContext . tags || { } ;
141
- this . data = spanContext . data || { } ;
142
- this . attributes = spanContext . attributes || { } ;
140
+ this . tags = spanContext . tags ? { ... spanContext . tags } : { } ;
141
+ this . data = spanContext . data ? { ... spanContext . data } : { } ;
142
+ this . attributes = spanContext . attributes ? { ... spanContext . attributes } : { } ;
143
143
this . instrumenter = spanContext . instrumenter || 'sentry' ;
144
144
this . origin = spanContext . origin || 'manual' ;
145
145
// eslint-disable-next-line deprecation/deprecation
You can’t perform that action at this time.
0 commit comments