diff --git a/bin/start.sh b/bin/start.sh index f3de3bb1..9907178c 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -9,7 +9,9 @@ fi STARTAPP="uvicorn --factory deepchecks_monitoring.app:create_application --host 0.0.0.0 --workers 4 --log-level debug --proxy-headers --forwarded-allow-ips '*'" if [[ -v DD_ENV ]]; then - STARTAPP="ddtrace-run ${STARTAPP}" + # Run ddtrace with uvicorn as a pid 1 in the container (pass pid 1 in the container from bash to ddtrace) + exec ddtrace-run ${STARTAPP} fi -exec ${STARTAPP} +# Run Uvicorn as a pid 1 in the container (pass pid 1 in the container from bash to Unicorn) +exec ${STARTAPP} \ No newline at end of file