Skip to content

Commit e999c45

Browse files
nirgaclaude
andcommitted
chore: remove debug logs and unused vision-utils.ts
- Remove debug console.log statements from instrumentation and tracing - Remove unused vision-utils.ts (119 lines of unused vision API code) - Clean up production code by removing development debugging 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 05acd52 commit e999c45

File tree

3 files changed

+0
-123
lines changed

3 files changed

+0
-123
lines changed

packages/instrumentation-openai/src/instrumentation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export class OpenAIInstrumentation extends InstrumentationBase {
115115

116116
private patch(moduleExports: typeof openai, moduleVersion?: string) {
117117
this._diag.debug(`Patching openai@${moduleVersion}`);
118-
console.log("🚨 PATCH CALLED: OpenAI instrumentation patch() method executing");
119118

120119
// Old version of OpenAI API (v3.1.0)
121120
if ((moduleExports as any).OpenAIApi) {

packages/instrumentation-openai/src/vision-utils.ts

Lines changed: 0 additions & 119 deletions
This file was deleted.

packages/traceloop-sdk/src/lib/tracing/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,19 @@ export const initInstrumentations = (
6666
// Create or update OpenAI instrumentation
6767
if (openAIInstrumentation) {
6868
// Update existing instrumentation with new callback
69-
console.log("🔧 Updating existing OpenAI instrumentation with callback:", !!uploadBase64ImageCallback);
7069
openAIInstrumentation.setConfig({
7170
enrichTokens,
7271
exceptionLogger,
7372
uploadBase64Image: uploadBase64ImageCallback,
7473
});
7574
} else {
7675
// Create new instrumentation
77-
console.log("🚨 Creating NEW OpenAI instrumentation with callback:", !!uploadBase64ImageCallback);
7876
openAIInstrumentation = new OpenAIInstrumentation({
7977
enrichTokens,
8078
exceptionLogger,
8179
uploadBase64Image: uploadBase64ImageCallback,
8280
});
8381
instrumentations.push(openAIInstrumentation);
84-
console.log("📝 Added OpenAI instrumentation to array. Total instrumentations:", instrumentations.length);
8582
}
8683

8784
if (!anthropicInstrumentation) {

0 commit comments

Comments
 (0)