mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +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
6af8f2d752
commit
797aceb282
3 changed files with 4 additions and 1 deletions
|
|
@ -8,6 +8,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
|
||||
|
|
@ -6,7 +6,7 @@ loglevel=info
|
|||
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
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ async_generator==1.10.0 # for async ollama calls
|
|||
langfuse==2.59.7 # for langfuse self-hosted logging
|
||||
prometheus_client==0.20.0 # for /metrics endpoint on proxy
|
||||
ddtrace==2.19.0 # for advanced DD tracing / profiling
|
||||
newrelic>=11.0.1 # for New Relic APM and AI monitoring
|
||||
orjson==3.11.2 # fast /embedding responses
|
||||
polars==1.31.0 # for data processing
|
||||
apscheduler==3.10.4 # for resetting budget in background
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue