Skip to content

Commit

Permalink
feat - custom OTEL service names
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jun 6, 2024
1 parent 059c59f commit 4427b48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions litellm/integrations/opentelemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
from litellm.integrations.custom_logger import CustomLogger
from litellm._logging import verbose_logger

LITELLM_TRACER_NAME = "litellm"
LITELLM_RESOURCE = {"service.name": "litellm"}

LITELLM_TRACER_NAME = os.getenv("OTEL_TRACER_NAME", "litellm")
LITELLM_RESOURCE = {
"service.name": os.getenv("OTEL_SERVICE_NAME", "litellm"),
}


@dataclass
Expand Down

0 comments on commit 4427b48

Please sign in to comment.