Update litellm/proxy/proxy_server.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Alexsander Hamir 2026-02-13 17:32:01 -08:00 • committed by GitHub
parent e604a0497c
commit 99a9c66af5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5828,10 +5828,9 @@ class ProxyStartupEvent:
Optional: PYROSCOPE_SAMPLE_RATE (parsed as integer) to set the sample rate.
"""
if not get_secret_bool("LITELLM_ENABLE_PYROSCOPE", False):
verbose_proxy_logger.info(
verbose_proxy_logger.debug(
"LiteLLM: Pyroscope profiling is disabled (set LITELLM_ENABLE_PYROSCOPE=true to enable)."
)
return
try:
import pyroscope