AWS Bedrock JavaScript SDK Integration
Learn how to integrate AWS Bedrock with Helicone using JavaScript.
Async Integration
Helicone uses OpenLLMetry to capture traces when using async logging. Currently OpenLLMetry doesn’t support reporting message bodies for AWS Bedrock, we’re currently working with them to add proper support for reporting Bedrock traces.them to add proper support for reporting Bedrock traces.
Set API keys as environment variables
Install necessary packages
Ensure you have the necessary packages installed in your JavaScript project:
Import required modules and initialize Helicone Logger
Configure AWS Bedrock client
Create a command for the Bedrock model
Send the request and handle the response
Complete Example
Here’s a complete example that puts all the steps together:
This integration allows you to use AWS Bedrock with Helicone’s async logging. The Helicone logger will automatically capture traces of your AWS Bedrock API calls, providing you with valuable insights and analytics through the Helicone dashboard.
For more information on using async logging, visit the Async Logging documentation.
Was this page helpful?