mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Enabling New Relic agent to be wired when docker container starts if an environment variable
is set.
This commit is contained in:
parent
6247823ac2
commit
129d2ba505
2 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ fi
|
|||
if [ "$USE_DDTRACE" = "true" ]; then
|
||||
export DD_TRACE_OPENAI_ENABLED="False"
|
||||
exec ddtrace-run litellm "$@"
|
||||
elif [ "$USE_NEWRELIC" = "true" ]; then
|
||||
exec newrelic-admin run-python litellm "$@"
|
||||
else
|
||||
exec litellm "$@"
|
||||
fi
|
||||
|
|
@ -8,7 +8,7 @@ pidfile=/tmp/supervisord.pid
|
|||
programs=main,health
|
||||
|
||||
[program:main]
|
||||
command=sh -c 'if [ "$USE_DDTRACE" = "true" ]; then export DD_TRACE_OPENAI_ENABLED="False"; exec ddtrace-run python -m litellm.proxy.proxy_cli --host 0.0.0.0 --port=4000 $LITELLM_ARGS; else exec python -m litellm.proxy.proxy_cli --host 0.0.0.0 --port=4000 $LITELLM_ARGS; fi'
|
||||
command=sh -c 'if [ "$USE_DDTRACE" = "true" ]; then export DD_TRACE_OPENAI_ENABLED="False"; exec ddtrace-run python -m litellm.proxy.proxy_cli --host 0.0.0.0 --port=4000 $LITELLM_ARGS; elif [ "$USE_NEWRELIC" = "true" ]; then exec newrelic-admin run-program python -m litellm.proxy.proxy_cli --host 0.0.0.0 --port=4000 $LITELLM_ARGS; else exec python -m litellm.proxy.proxy_cli --host 0.0.0.0 --port=4000 $LITELLM_ARGS; fi'
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startretries=3
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue