Skip to content

Commit 40ca31b

Browse files
fix: log AWS error in Bedrock tracer
1 parent d385c92 commit 40ca31b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/integrations/bedrockAgentTracer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ try {
1111
InvokeAgentCommandInput = bedrockModule.InvokeAgentCommandInput;
1212
InvokeAgentCommandOutput = bedrockModule.InvokeAgentCommandOutput;
1313
} catch (error) {
14-
// AWS SDK not available
14+
console.warn(
15+
'AWS SDK for Bedrock Agent Runtime is not available. Install it with: npm install @aws-sdk/client-bedrock-agent-runtime',
16+
);
17+
console.debug('Bedrock Agent tracing will not be available. Error:', error);
1518
}
1619

1720
import { addChatCompletionStepToTrace } from '../tracing/tracer';

0 commit comments

Comments
 (0)