Skip to content

Commit a1c5212

Browse files
committed
fix: disable tracing temporarily
1 parent b433084 commit a1c5212

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"import/extensions": "off",
9292
"n/prefer-global/process": "off",
9393
"no-new-func": "off",
94+
"capitalized-comments": "off",
9495
"unicorn/no-process-exit": "off",
9596
"unicorn/prefer-add-event-listener": "off",
9697
"unicorn/prefer-switch": "off",

packages/agent-api/src/tracing.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { useAzureMonitor } from '@azure/monitor-opentelemetry';
66
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
77
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
88
import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
9-
import { LangChainInstrumentation } from '@arizeai/openinference-instrumentation-langchain';
10-
import * as CallbackManagerModule from 'langchain';
9+
// import { LangChainInstrumentation } from '@arizeai/openinference-instrumentation-langchain';
10+
// import * as CallbackManagerModule from 'langchain';
1111

1212
let isTracingInitialized = false;
1313
if (!isTracingInitialized) {
@@ -35,8 +35,9 @@ if (!isTracingInitialized) {
3535
}
3636

3737
// Manually instrument LangChain's CallbackManager to capture traces
38-
const langchainInstrumentation = new LangChainInstrumentation();
39-
langchainInstrumentation.manuallyInstrument(CallbackManagerModule);
38+
// TODO: temporarily disabled due to compatibility issues with LangChain v1 (PR in progress)
39+
// const langchainInstrumentation = new LangChainInstrumentation();
40+
// langchainInstrumentation.manuallyInstrument(CallbackManagerModule);
4041

4142
isTracingInitialized = true;
4243
}

0 commit comments

Comments
 (0)