Skip to content

Commit 0b6a3b1

Browse files
committed
Fix e2e/node-otel-without-tracing tests
1 parent 61cc682 commit 0b6a3b1

File tree

1 file changed

+9
-9
lines changed
  • dev-packages/e2e-tests/test-applications/node-otel-without-tracing/src

1 file changed

+9
-9
lines changed

dev-packages/e2e-tests/test-applications/node-otel-without-tracing/src/instrument.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Sentry.init({
2020
});
2121

2222
// Create and configure NodeTracerProvider
23-
const provider = new NodeTracerProvider({});
24-
25-
provider.addSpanProcessor(
26-
new BatchSpanProcessor(
27-
new OTLPTraceExporter({
28-
url: 'http://localhost:3032/',
29-
}),
30-
),
31-
);
23+
const provider = new NodeTracerProvider({
24+
spanProcessors: [
25+
new BatchSpanProcessor(
26+
new OTLPTraceExporter({
27+
url: 'http://localhost:3032/',
28+
}),
29+
),
30+
],
31+
});
3232

3333
// Initialize the provider
3434
provider.register({

0 commit comments

Comments
 (0)