Skip to content

Commit

Permalink
Merge pull request BerriAI#4048 from BerriAI/litellm_otel_set_svc_name
Browse files Browse the repository at this point in the history
feat - OTEL set custom service names and custom tracer names
  • Loading branch information
ishaan-jaff authored Jun 7, 2024
2 parents 7b1047b + 4427b48 commit dab756d
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 dab756d

Please sign in to comment.