Skip to content

Commit 5a8b505

Browse files
committed
revert this
1 parent cda19bf commit 5a8b505

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

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

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

2020
const provider = new NodeTracerProvider({
2121
sampler: new CustomSampler(),
22-
spanProcessors: [new SentrySpanProcessor()],
2322
});
2423

24+
provider.addSpanProcessor(new SentrySpanProcessor());
25+
2526
provider.register({
2627
propagator: new SentryPropagator(),
2728
contextManager: new Sentry.SentryContextManager(),

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-
spanProcessors: [
25-
new BatchSpanProcessor(
26-
new OTLPTraceExporter({
27-
url: 'http://localhost:3032/',
28-
}),
29-
),
30-
],
31-
});
23+
const provider = new NodeTracerProvider({});
24+
25+
provider.addSpanProcessor(
26+
new BatchSpanProcessor(
27+
new OTLPTraceExporter({
28+
url: 'http://localhost:3032/',
29+
}),
30+
),
31+
);
3232

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

0 commit comments

Comments
 (0)