Skip to content

Commit 84740ff

Browse files
committed
remove litellm
1 parent d29ddb8 commit 84740ff

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

sentry_sdk/integrations/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def iter_default_integrations(
8888
"sentry_sdk.integrations.huggingface_hub.HuggingfaceHubIntegration",
8989
"sentry_sdk.integrations.langchain.LangchainIntegration",
9090
"sentry_sdk.integrations.langgraph.LanggraphIntegration",
91-
"sentry_sdk.integrations.litellm.LiteLLMIntegration",
9291
"sentry_sdk.integrations.litestar.LitestarIntegration",
9392
"sentry_sdk.integrations.loguru.LoguruIntegration",
9493
"sentry_sdk.integrations.mcp.MCPIntegration",
@@ -168,7 +167,6 @@ def iter_default_integrations(
168167

169168
_INTEGRATION_DEACTIVATES = {
170169
"langchain": {"openai", "anthropic"},
171-
"litellm": {"openai", "anthropic"},
172170
"openai_agents": {"openai"},
173171
"pydantic_ai": {"openai", "anthropic"},
174172
}

tests/integrations/litellm/test_litellm.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -566,15 +566,10 @@ def test_litellm_specific_parameters(sentry_init, capture_events):
566566
assert span["data"]["gen_ai.litellm.custom_llm_provider"] == "custom_provider"
567567

568568

569-
def test_no_integration(
570-
sentry_init, capture_events, reset_integrations, uninstall_integration
571-
):
569+
def test_no_integration(sentry_init, capture_events):
572570
"""Test that when integration is not enabled, callbacks don't break."""
573-
# Reset integrations since LiteLLM is now auto-enabled and we need to test
574-
# the behavior when it's explicitly disabled
575571
sentry_init(
576572
traces_sample_rate=1.0,
577-
disabled_integrations=[LiteLLMIntegration],
578573
)
579574
events = capture_events()
580575

@@ -602,9 +597,6 @@ def test_no_integration(
602597
assert event["type"] == "transaction"
603598
assert len(event.get("spans", [])) == 0
604599

605-
# Clean up: uninstall litellm so subsequent tests can re-install it
606-
uninstall_integration("litellm")
607-
608600

609601
def test_response_without_usage(sentry_init, capture_events):
610602
"""Test handling of responses without usage information."""

0 commit comments

Comments
 (0)