mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
otel - use correct raw request name
This commit is contained in:
parent
47f1e16533
commit
9478c98fff
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@ LITELLM_TRACER_NAME = os.getenv("OTEL_TRACER_NAME", "litellm")
|
|||
LITELLM_RESOURCE = {
|
||||
"service.name": os.getenv("OTEL_SERVICE_NAME", "litellm"),
|
||||
}
|
||||
RAW_REQUEST_SPAN_NAME = "RAW_GENAI_REQUEST"
|
||||
RAW_REQUEST_SPAN_NAME = "raw_gen_ai_request"
|
||||
LITELLM_REQUEST_SPAN_NAME = "litellm_request"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -412,7 +413,7 @@ class OpenTelemetry(CustomLogger):
|
|||
return int(dt.timestamp() * 1e9)
|
||||
|
||||
def _get_span_name(self, kwargs):
|
||||
return f"litellm-{kwargs.get('call_type', 'completion')}"
|
||||
return LITELLM_REQUEST_SPAN_NAME
|
||||
|
||||
def _get_span_context(self, kwargs):
|
||||
from opentelemetry.trace.propagation.tracecontext import (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue