mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix missing return in span name
This commit is contained in:
parent
0d8a7d5cf0
commit
e1df5a94a1
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class OpenTelemetry(CustomLogger):
|
||||||
return int(dt.timestamp() * 1e9)
|
return int(dt.timestamp() * 1e9)
|
||||||
|
|
||||||
def _get_span_name(self, kwargs):
|
def _get_span_name(self, kwargs):
|
||||||
f"litellm-{kwargs.get('call_type', 'completion')}"
|
return f"litellm-{kwargs.get('call_type', 'completion')}"
|
||||||
|
|
||||||
def _get_span_context(self, kwargs):
|
def _get_span_context(self, kwargs):
|
||||||
litellm_params = kwargs.get("litellm_params", {}) or {}
|
litellm_params = kwargs.get("litellm_params", {}) or {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue