From 8a5f763164a922f5ecd649bb216c9cae9dc27e78 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Tue, 8 Sep 2026 11:50:30 -0700 Subject: [PATCH] refactor(otel v2): drop the routing notes the names already say --- litellm/integrations/otel/plumbing/routing.py | 2 -- litellm/integrations/otel/presets/__init__.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/litellm/integrations/otel/plumbing/routing.py b/litellm/integrations/otel/plumbing/routing.py index e1cbc82719a..c19476a2133 100644 --- a/litellm/integrations/otel/plumbing/routing.py +++ b/litellm/integrations/otel/plumbing/routing.py @@ -236,8 +236,6 @@ class TenantTracerCache: service_name: Final = tenant_service_name(auth_metadata) if not credential_headers and not project_headers and service_name is None: return TenantRoute(tracer=default, detached=False) - # A fixed per-integration region endpoint (New Relic us/eu) or the host the - # key or team was configured with; ``None`` keeps the preset's endpoint. endpoint: Final = dynamic_otlp_endpoint(self._callback_name, dynamic_params) cache_key: Final = ( tuple(sorted(credential_headers.items())), diff --git a/litellm/integrations/otel/presets/__init__.py b/litellm/integrations/otel/presets/__init__.py index d5cc6c96635..37921673a7d 100644 --- a/litellm/integrations/otel/presets/__init__.py +++ b/litellm/integrations/otel/presets/__init__.py @@ -64,10 +64,6 @@ DYNAMIC_HEADERS_BY_CALLBACK: Final[Mapping[str, Callable[[StandardCallbackDynami ) ) -#: Callback name → per-request OTLP endpoint resolver. Only integrations whose -#: destination host varies per tenant appear here (newrelic's region table, the -#: Langfuse host a key or team was configured with); for everyone else the -#: preset's endpoint is authoritative. DYNAMIC_ENDPOINT_BY_CALLBACK: Final[Mapping[str, Callable[[StandardCallbackDynamicParams], str | None]]] = ( MappingProxyType( {