feat: 🎸 datadog

addedd
This commit is contained in:
Stan Girard 2024-01-27 13:17:20 -08:00
parent fa46eb1512
commit 59402dd8ee
2 changed files with 2 additions and 8 deletions

View File

@ -18,14 +18,7 @@
"command": [
"sh",
"-c",
"export DD_AGENT_HOST=$(curl http://169.254.169.254/latest/meta-data/local-ipv4); ddtrace-run uvicorn",
"main:app",
"--host",
"0.0.0.0",
"--port",
"5050",
"--workers",
"6"
"export DD_AGENT_HOST=$(curl http://169.254.169.254/latest/meta-data/local-ipv4); ddtrace-run uvicorn main:app --host 0.0.0.0 --port 5050 --workers 6"
],
"essential": true,
"environment": [

View File

@ -289,6 +289,7 @@ class CompositeBrainQA(
)
print("querying brain", function_name)
# TODO: extract chat_id from generate_answer function of XBrainQA
function_response = function_to_call(
chat_id=chat_id,
question=question,