fix missing return in span name

This commit is contained in:
yujonglee 2024-06-04 09:47:20 +09:00
parent 0d8a7d5cf0
commit e1df5a94a1

View file

@ -93,7 +93,7 @@ class OpenTelemetry(CustomLogger):
return int(dt.timestamp() * 1e9)
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):
litellm_params = kwargs.get("litellm_params", {}) or {}