The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(otel v2): type the operator sink scope pairs so the widest scope reduction stays Literal
yucheng75f926da3628
diff --git a/litellm/integrations/otel/plumbing/providers.py b/litellm/integrations/otel/plumbing/providers.pyindex bc82acccdf4..c43c49141e5 100644--- a/litellm/integrations/otel/plumbing/providers.py+++ b/litellm/integrations/otel/plumbing/providers.py@@ -1150,7 +1150,7 @@ def operator_sink_scopes(*configs: OpenTelemetryV2Config) -> 'Mapping[_SinkKey,and so is one that never reaches the wire: a console kind ignores the endpoint,and a header-gated spec with no credentials is skipped when the provider is built."""- scoped: Final = tuple(+ scoped: Final[tuple[tuple[_SinkKey, OtelSpanScope], ...]] = tuple((key, _operator_scope(config, spec))for config in configsfor spec in config.exporters