Skip to content

Commit

Permalink
(code cleanup) remove unused and undocumented logging integrations - …
Browse files Browse the repository at this point in the history
…litedebugger, berrispend (#6406)

* code cleanup remove unused and undocumented code files

* fix unused logging integrations cleanup
  • Loading branch information
ishaan-jaff authored Oct 24, 2024
1 parent 17e81d8 commit c731ba4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 336 deletions.
167 changes: 0 additions & 167 deletions litellm/integrations/aispend.py

This file was deleted.

86 changes: 0 additions & 86 deletions litellm/integrations/berrispend.py

This file was deleted.

77 changes: 0 additions & 77 deletions litellm/integrations/litedebugger.py

This file was deleted.

7 changes: 1 addition & 6 deletions litellm/litellm_core_utils/litellm_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
prompt_token_calculator,
)

from ..integrations.aispend import AISpendLogger
from ..integrations.argilla import ArgillaLogger
from ..integrations.arize_ai import ArizeLogger
from ..integrations.athina import AthinaLogger
Expand All @@ -73,7 +72,6 @@
from ..integrations.langfuse.langfuse import LangFuseLogger
from ..integrations.langfuse.langfuse_handler import LangFuseHandler
from ..integrations.langsmith import LangsmithLogger
from ..integrations.litedebugger import LiteDebugger
from ..integrations.literal_ai import LiteralAILogger
from ..integrations.logfire_logger import LogfireLevel, LogfireLogger
from ..integrations.lunary import LunaryLogger
Expand Down Expand Up @@ -124,7 +122,6 @@
genericAPILogger = None
greenscaleLogger = None
lunaryLogger = None
aispendLogger = None
supabaseClient = None
callback_list: Optional[List[str]] = []
user_logger_fn = None
Expand Down Expand Up @@ -2044,7 +2041,7 @@ def set_callbacks(callback_list, function_id=None): # noqa: PLR0915
"""
Globally sets the callback client
"""
global sentry_sdk_instance, capture_exception, add_breadcrumb, posthog, slack_app, alerts_channel, traceloopLogger, athinaLogger, heliconeLogger, aispendLogger, supabaseClient, lunaryLogger, promptLayerLogger, langFuseLogger, customLogger, weightsBiasesLogger, logfireLogger, dynamoLogger, s3Logger, dataDogLogger, prometheusLogger, greenscaleLogger, openMeterLogger
global sentry_sdk_instance, capture_exception, add_breadcrumb, posthog, slack_app, alerts_channel, traceloopLogger, athinaLogger, heliconeLogger, supabaseClient, lunaryLogger, promptLayerLogger, langFuseLogger, customLogger, weightsBiasesLogger, logfireLogger, dynamoLogger, s3Logger, dataDogLogger, prometheusLogger, greenscaleLogger, openMeterLogger

try:
for callback in callback_list:
Expand Down Expand Up @@ -2124,8 +2121,6 @@ def set_callbacks(callback_list, function_id=None): # noqa: PLR0915
weightsBiasesLogger = WeightsBiasesLogger()
elif callback == "logfire":
logfireLogger = LogfireLogger()
elif callback == "aispend":
aispendLogger = AISpendLogger()
elif callback == "supabase":
print_verbose("instantiating supabase")
supabaseClient = Supabase()
Expand Down

0 comments on commit c731ba4

Please sign in to comment.