Skip to content

Commit f21afb3

Browse files
committed
fix node experimental tests
1 parent d1d21aa commit f21afb3

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('Integration | Scope', () => {
8888
expect.objectContaining({
8989
contexts: expect.objectContaining({
9090
trace: {
91-
data: { 'otel.kind': 'INTERNAL' },
91+
data: { 'otel.kind': 'INTERNAL', 'sentry.origin': 'manual' },
9292
span_id: spanId,
9393
status: 'ok',
9494
trace_id: traceId,

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

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ describe('Integration | Transactions', () => {
8484
},
8585
runtime: { name: 'node', version: expect.any(String) },
8686
trace: {
87-
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
87+
data: {
88+
'otel.kind': 'INTERNAL',
89+
'sentry.op': 'test op',
90+
'sentry.origin': 'auto.test',
91+
},
8892
op: 'test op',
8993
span_id: expect.any(String),
9094
status: 'ok',
@@ -148,7 +152,10 @@ describe('Integration | Transactions', () => {
148152
// This is the same behavior as for the "regular" SDKs
149153
expect(spans.map(span => spanToJSON(span))).toEqual([
150154
{
151-
data: { 'otel.kind': 'INTERNAL' },
155+
data: {
156+
'otel.kind': 'INTERNAL',
157+
'sentry.origin': 'manual',
158+
},
152159
description: 'inner span 1',
153160
origin: 'manual',
154161
parent_span_id: expect.any(String),
@@ -159,7 +166,11 @@ describe('Integration | Transactions', () => {
159166
trace_id: expect.any(String),
160167
},
161168
{
162-
data: { 'otel.kind': 'INTERNAL', 'test.inner': 'test value' },
169+
data: {
170+
'otel.kind': 'INTERNAL',
171+
'test.inner': 'test value',
172+
'sentry.origin': 'manual',
173+
},
163174
description: 'inner span 2',
164175
origin: 'manual',
165176
parent_span_id: expect.any(String),
@@ -244,7 +255,11 @@ describe('Integration | Transactions', () => {
244255
},
245256
}),
246257
trace: {
247-
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
258+
data: {
259+
'otel.kind': 'INTERNAL',
260+
'sentry.op': 'test op',
261+
'sentry.origin': 'auto.test',
262+
},
248263
op: 'test op',
249264
span_id: expect.any(String),
250265
status: 'ok',
@@ -286,7 +301,11 @@ describe('Integration | Transactions', () => {
286301
},
287302
}),
288303
trace: {
289-
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op b' },
304+
data: {
305+
'otel.kind': 'INTERNAL',
306+
'sentry.op': 'test op b',
307+
'sentry.origin': 'manual',
308+
},
290309
op: 'test op b',
291310
span_id: expect.any(String),
292311
status: 'ok',
@@ -363,7 +382,11 @@ describe('Integration | Transactions', () => {
363382
attributes: {},
364383
}),
365384
trace: {
366-
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
385+
data: {
386+
'otel.kind': 'INTERNAL',
387+
'sentry.op': 'test op',
388+
'sentry.origin': 'auto.test',
389+
},
367390
op: 'test op',
368391
span_id: expect.any(String),
369392
parent_span_id: parentSpanId,
@@ -401,7 +424,10 @@ describe('Integration | Transactions', () => {
401424
// This is the same behavior as for the "regular" SDKs
402425
expect(spans.map(span => spanToJSON(span))).toEqual([
403426
{
404-
data: { 'otel.kind': 'INTERNAL' },
427+
data: {
428+
'otel.kind': 'INTERNAL',
429+
'sentry.origin': 'manual',
430+
},
405431
description: 'inner span 1',
406432
origin: 'manual',
407433
parent_span_id: expect.any(String),
@@ -412,7 +438,10 @@ describe('Integration | Transactions', () => {
412438
trace_id: traceId,
413439
},
414440
{
415-
data: { 'otel.kind': 'INTERNAL' },
441+
data: {
442+
'otel.kind': 'INTERNAL',
443+
'sentry.origin': 'manual',
444+
},
416445
description: 'inner span 2',
417446
origin: 'manual',
418447
parent_span_id: expect.any(String),

0 commit comments

Comments
 (0)