Skip to content

Commit

Permalink
Datadog startup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiland committed Dec 11, 2024
1 parent d9a5859 commit b91030b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compose/fastapi/start-datadog
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export UVICORN_HOST="0.0.0.0"
export UVICORN_PORT=80


LOG_JSON_FORMAT=true DD_TRACE_ENABLED=true uvicorn main:app \
export DD_AGENT_HOST=$(curl http://169.254.169.254/latest/meta-data/local-ipv4); \
LOG_JSON_FORMAT=true DD_TRACE_ENABLED=true uvicorn main:app \
--host ${UVICORN_HOST} --port ${UVICORN_PORT} \
--reload --proxy-headers \
--log-config uvicorn_disable_logging.json

0 comments on commit b91030b

Please sign in to comment.