Skip to content

taka2noda/datadog-llmops-bedrock-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Procedure

Reference Guide: https://docs.datadoghq.com/llm_observability/setup/sdk/

Env

On AWS Cloud9 or Cloud Shell

Prerequisites

The latest ddtrace and bot3 package must be installed:

pip install ddtrace
pip install bot3

LLM Observability requires a Datadog API key

anthropic.claude-3-haiku is enabled on AWS Bedrock

Command-line setup

Enable LLM Observability by running your application using the ddtrace-run command and specifying the required environment variables.

Command Template

DD_SITE=<YOUR_DATADOG_SITE> DD_API_KEY=<YOUR_API_KEY> DD_LLMOBS_ENABLED=1 DD_LLMOBS_AGENTLESS_ENABLED=1 \
DD_LLMOBS_ML_APP=<YOUR_ML_APP_NAME> ddtrace-run <YOUR_APP_STARTUP_COMMAND>

Command Sample

DD_LLMOBS_ENABLED=1 DD_LLMOBS_ML_APP=br-chat \
DD_API_KEY="自分のAPI Key" DD_SITE="datadoghq.com" DD_LLMOBS_AGENTLESS_ENABLED=1 \
ddtrace-run python br-chat.py

Datadog Setting

Once LLM Trace is sent to Datadog, you need to enable "Evaluations" at "Configuration" tab to enable "Evaluations" for prompts. Datadog-llmOps-Evaluation-Security-Enable

Command history

[cloudshell-user@ip-10- ~]$ ls
work-bedrock
[cloudshell-user@ip-10- ~]$ cd work-bedrock/
[cloudshell-user@ip-10- work-bedrock]$ ls
br-chat.py
[cloudshell-user@ip-10- work-bedrock]$ DD_LLMOBS_ENABLED=1 DD_LLMOBS_ML_APP=br-chat1 DD_API_KEY="" DD_SITE="datadoghq.com" DD_LLMOBS_AGENTLESS_ENABLED=1 
ddtrace-run python br-chat.py

About

AWS Bedrock Claude with Datadog LLM Observability agentless mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages