> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# litellm_proxy.Tracer

> Tracing and instrumentation utilities for Litellm_Proxy integration.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/logger/litellm_proxy/tracer.py)

## [MaximLiteLLMProxyTracer](/sdk/python/references/logger/litellm_proxy/tracer)

```python theme={null}
class MaximLiteLLMProxyTracer(CustomLogger)
```

Custom logger for Litellm Proxy.

#### log\_pre\_api\_call

```python theme={null}
def log_pre_api_call(model, messages, kwargs)
```

Runs when a LLM call starts.

#### log\_success\_event

```python theme={null}
def log_success_event(kwargs, response_obj, start_time, end_time)
```

Runs when a LLM call succeeds.

#### log\_failure\_event

```python theme={null}
def log_failure_event(kwargs, response_obj, start_time, end_time)
```

Runs when a LLM call fails.

#### async\_log\_pre\_api\_call

```python theme={null}
async def async_log_pre_api_call(model, messages, kwargs)
```

Runs when a LLM call starts.

#### async\_log\_success\_event

```python theme={null}
async def async_log_success_event(kwargs, response_obj, start_time, end_time)
```

Runs when a LLM call succeeds.

#### async\_log\_failure\_event

```python theme={null}
async def async_log_failure_event(kwargs, response_obj, start_time, end_time)
```

Runs when a LLM call fails.
