Skip to content

Commit 386d674

Browse files
committed
Fix e2e/node-otel-custom-sampler tests
1 parent 857beff commit 386d674

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/src/instrument.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ Sentry.init({
1919

2020
const provider = new NodeTracerProvider({
2121
sampler: new CustomSampler(),
22+
spanProcessors: [new SentrySpanProcessor()],
2223
});
2324

24-
provider.addSpanProcessor(new SentrySpanProcessor());
25-
2625
provider.register({
2726
propagator: new SentryPropagator(),
2827
contextManager: new Sentry.SentryContextManager(),

dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/tests/sampling.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ test('Sends a sampled API route transaction', async ({ baseURL }) => {
5050
data: {
5151
'sentry.origin': 'auto.http.otel.express',
5252
'sentry.op': 'middleware.express',
53-
'http.route': '/',
5453
'express.name': 'query',
5554
'express.type': 'middleware',
5655
},
@@ -69,7 +68,6 @@ test('Sends a sampled API route transaction', async ({ baseURL }) => {
6968
data: {
7069
'sentry.origin': 'auto.http.otel.express',
7170
'sentry.op': 'middleware.express',
72-
'http.route': '/',
7371
'express.name': 'expressInit',
7472
'express.type': 'middleware',
7573
},

0 commit comments

Comments
 (0)