Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions litellm/proxy/hooks/parallel_request_limiter_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,11 @@ async def _execute_max_parallel_requests_increment(
f"timestamp={current_ts}"
)

# DEBUG: Track caller after METRICS
import traceback
stack = "".join(traceback.format_stack()[-30:-1])
print(f"[DEBUG INCREMENT] key={descriptor_key}:{descriptor_value[:8]}..., key_alias={key_alias}, caller stack:\n{stack}\n{'='*40}")

verbose_proxy_logger.debug(
f"Max parallel requests increment: key={descriptor_key}:{descriptor_value}, "
f"previous={previous_count}, new={new_count}"
Expand Down Expand Up @@ -1672,6 +1677,11 @@ async def _execute_max_parallel_requests_decrement(
f"timestamp={current_ts}"
)

# DEBUG: Track caller after METRICS
import traceback
stack = "".join(traceback.format_stack()[-30:-1])
print(f"[DEBUG DECREMENT] key={descriptor_key}:{descriptor_value[:8]}..., key_alias={metric_key_alias}, caller stack:\n{stack}\n{'='*40}")

verbose_proxy_logger.debug(
f"Max parallel requests decrement: key={descriptor_key}:{descriptor_value}, "
f"previous={previous_count}, current={new_count}"
Expand Down
Loading