Before you start logging you will have to create a LogRepository on the Maxim dashboard. To create a log repository,click on Logs and the click on + icon on the sidebar. You can use the ID of that repository to push logs.
ObservabilityPythonQuickstart
Tracing Litellm with Maxim SDK
This guide shows how to add Maxim's tracing to your Litellm workflows. We'll use a simple API that sends user queries to an LLM and returns responses. You'll learn how to quickly start logging and gain insights into your LLM interactions, helping you better monitor and optimize your AI applications.
Integrating Maxim SDK
Initialize Maxim logger.
To get the Maxim API key
Create MaximLiteLLMTracer instance and add as a callback.
This will enable Maxim observability on your Litellm workflow.