Skip to content

Commit d1c41fc

Browse files
committed
chore: make local tracing immediate
1 parent 7cc4893 commit d1c41fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/agent-api/src/tracing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { useAzureMonitor } from "@azure/monitor-opentelemetry";
66
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
77
import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node";
8-
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
8+
import { SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
99
import { LangChainInstrumentation } from "@arizeai/openinference-instrumentation-langchain";
1010
import * as CallbackManagerModule from "@langchain/core/callbacks/manager";
1111

@@ -27,7 +27,7 @@ if (!isTracingInitialized) {
2727
url: "http://localhost:4318/v1/traces",
2828
});
2929
const provider = new NodeTracerProvider({
30-
spanProcessors: [new BatchSpanProcessor(exporter as any) as any],
30+
spanProcessors: [new SimpleSpanProcessor(exporter as any) as any],
3131
});
3232
provider.register();
3333
}

0 commit comments

Comments
 (0)