Skip to content

Commit eebeb6b

Browse files
committed
remove line that in _normalizeEvent that cleared contexts
1 parent 4a8de28 commit eebeb6b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,8 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
504504
// For now the decision is to skip normalization of Transactions and Spans,
505505
// so this block overwrites the normalized event to add back the original
506506
// Transaction information prior to normalization.
507-
if (event.contexts && event.contexts.trace) {
508-
normalized.contexts = {};
507+
if (event.contexts && event.contexts.trace && normalized.contexts) {
509508
normalized.contexts.trace = event.contexts.trace;
510-
normalized.contexts.baggage = event.contexts.baggage;
511509

512510
// event.contexts.trace.data may contain circular/dangerous data so we need to normalize it
513511
if (event.contexts.trace.data) {

0 commit comments

Comments
 (0)