mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix - add stricter type check for OTEL when args[0] is not dict
This commit is contained in:
parent
4d253e473a
commit
e4b1dd7530
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ def log_to_opentelemetry(func):
|
|||
# https://docs.litellm.ai/docs/observability/custom_callback#callback-functions
|
||||
args is not None
|
||||
and len(args) > 0
|
||||
and isinstance(args[0], dict)
|
||||
):
|
||||
passed_kwargs = args[0]
|
||||
parent_otel_span = _get_parent_otel_span_from_kwargs(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue