diff --git a/litellm/integrations/opentelemetry.py b/litellm/integrations/opentelemetry.py index ac92d5ddd7f4..00bc014c40e2 100644 --- a/litellm/integrations/opentelemetry.py +++ b/litellm/integrations/opentelemetry.py @@ -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