File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55import { useAzureMonitor } from "@azure/monitor-opentelemetry" ;
66import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http" ;
77import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node" ;
8- import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base" ;
8+ import { SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base" ;
99import { LangChainInstrumentation } from "@arizeai/openinference-instrumentation-langchain" ;
1010import * 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 }
You can’t perform that action at this time.
0 commit comments