mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
feat - use log_to_opentelemetry for _PROXY_track_cost_callback
This commit is contained in:
parent
a105348614
commit
cde46a4a09
1 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,7 @@ from litellm.proxy.utils import (
|
|||
get_error_message_str,
|
||||
get_instance_fn,
|
||||
hash_token,
|
||||
log_to_opentelemetry,
|
||||
reset_budget,
|
||||
send_email,
|
||||
update_spend,
|
||||
|
@ -649,6 +650,7 @@ async def _PROXY_failure_handler(
|
|||
pass
|
||||
|
||||
|
||||
@log_to_opentelemetry
|
||||
async def _PROXY_track_cost_callback(
|
||||
kwargs, # kwargs to completion
|
||||
completion_response: litellm.ModelResponse, # response from completion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue