Skip to content

Commit 1e9ea81

Browse files
author
Luca Forstner
committed
help
1 parent 0947fb0 commit 1e9ea81

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

packages/node-experimental/test/integration/transactions.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@ describe('Integration | Transactions', () => {
108108
trace_id: expect.any(String),
109109
transaction: 'test name',
110110
}),
111-
propagationContext: {
112-
sampled: undefined,
113-
spanId: expect.any(String),
114-
traceId: expect.any(String),
115-
},
116111
sampleRate: 1,
117112
source: 'task',
118113
spanMetadata: expect.any(Object),

packages/node-experimental/test/sdk/scope.test.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,13 @@ describe('Unit | Scope', () => {
130130
event_id: expect.any(String),
131131
environment: 'production',
132132
message: 'foo',
133-
sdkProcessingMetadata: {
134-
propagationContext: {
135-
spanId: expect.any(String),
136-
traceId: expect.any(String),
133+
contexts: {
134+
trace: {
135+
span_id: expect.any(String),
136+
trace_id: expect.any(String),
137137
},
138138
},
139+
sdkProcessingMetadata: {},
139140
});
140141
});
141142

@@ -213,16 +214,19 @@ describe('Unit | Scope', () => {
213214
user: { id: '1', email: '[email protected]' },
214215
tags: { tag1: 'aa', tag2: 'aa' },
215216
extra: { extra1: 'aa', extra2: 'aa' },
216-
contexts: { os: { name: 'os1' }, culture: { display_name: 'name1' } },
217+
contexts: {
218+
os: { name: 'os1' },
219+
culture: { display_name: 'name1' },
220+
trace: {
221+
span_id: '1',
222+
trace_id: '1',
223+
},
224+
},
217225
fingerprint: ['dd', 'aa'],
218226
breadcrumbs: [breadcrumb4, breadcrumb2, breadcrumb3, breadcrumb1],
219227
sdkProcessingMetadata: {
220228
aa: 'aa',
221229
bb: 'bb',
222-
propagationContext: {
223-
spanId: '1',
224-
traceId: '1',
225-
},
226230
},
227231
});
228232
});

0 commit comments

Comments
 (0)