Skip to content

Commit

Permalink
fix more otel/node-experimental tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Jan 16, 2024
1 parent f7c69bf commit 840c720
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('Integration | Transactions', () => {
},
runtime: { name: 'node', version: expect.any(String) },
trace: {
data: { 'otel.kind': 'INTERNAL' },
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
op: 'test op',
span_id: expect.any(String),
status: 'ok',
Expand Down Expand Up @@ -244,7 +244,7 @@ describe('Integration | Transactions', () => {
},
}),
trace: {
data: { 'otel.kind': 'INTERNAL' },
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
op: 'test op',
span_id: expect.any(String),
status: 'ok',
Expand Down Expand Up @@ -286,7 +286,7 @@ describe('Integration | Transactions', () => {
},
}),
trace: {
data: { 'otel.kind': 'INTERNAL' },
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op b' },
op: 'test op b',
span_id: expect.any(String),
status: 'ok',
Expand Down Expand Up @@ -363,7 +363,7 @@ describe('Integration | Transactions', () => {
attributes: {},
}),
trace: {
data: { 'otel.kind': 'INTERNAL' },
data: { 'otel.kind': 'INTERNAL', 'sentry.op': 'test op' },
op: 'test op',
span_id: expect.any(String),
parent_span_id: parentSpanId,
Expand Down
1 change: 1 addition & 0 deletions packages/opentelemetry-node/test/spanprocessor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ describe('SentrySpanProcessor', () => {
'http.url': 'http://example.com/my/route/123',
'otel.kind': 'INTERNAL',
url: 'http://example.com/my/route/123',
'sentry.op': 'http',
});

parentOtelSpan.end();
Expand Down

0 comments on commit 840c720

Please sign in to comment.