Skip to content

Commit 1b515f9

Browse files
committed
fix more otel/node-experimental tests
1 parent af67b4b commit 1b515f9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('Integration | Transactions', () => {
8484
},
8585
runtime: { name: 'node', version: expect.any(String) },
8686
trace: {
87-
data: { 'otel.kind': 'INTERNAL' },
87+
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
8888
op: 'test op',
8989
span_id: expect.any(String),
9090
status: 'ok',
@@ -244,7 +244,7 @@ describe('Integration | Transactions', () => {
244244
},
245245
}),
246246
trace: {
247-
data: { 'otel.kind': 'INTERNAL' },
247+
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
248248
op: 'test op',
249249
span_id: expect.any(String),
250250
status: 'ok',
@@ -286,7 +286,7 @@ describe('Integration | Transactions', () => {
286286
},
287287
}),
288288
trace: {
289-
data: { 'otel.kind': 'INTERNAL' },
289+
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op b' },
290290
op: 'test op b',
291291
span_id: expect.any(String),
292292
status: 'ok',
@@ -363,7 +363,7 @@ describe('Integration | Transactions', () => {
363363
attributes: {},
364364
}),
365365
trace: {
366-
data: { 'otel.kind': 'INTERNAL' },
366+
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
367367
op: 'test op',
368368
span_id: expect.any(String),
369369
parent_span_id: parentSpanId,

packages/opentelemetry-node/test/spanprocessor.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ describe('SentrySpanProcessor', () => {
550550
'http.url': 'http://example.com/my/route/123',
551551
'otel.kind': 'INTERNAL',
552552
url: 'http://example.com/my/route/123',
553+
'sentry.op': 'http',
553554
});
554555

555556
parentOtelSpan.end();

0 commit comments

Comments
 (0)