Skip to content

Commit

Permalink
feat: change to batch exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
danstarns committed Jun 9, 2024
1 parent 592b4a8 commit c958768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/opentelemetry/src/setup-otel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
} from "@opentelemetry/instrumentation";
import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base";
import {
BatchSpanProcessor,
InMemorySpanExporter,
SimpleSpanProcessor,
} from "@opentelemetry/sdk-trace-base";

import { provider } from "./provider";
Expand Down Expand Up @@ -36,7 +36,7 @@ export function setupOtel({

api.context.setGlobalContextManager(contextManager);

provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
provider.addSpanProcessor(new BatchSpanProcessor(exporter));

if (instrumentations) {
registerInstrumentations({
Expand Down

0 comments on commit c958768

Please sign in to comment.