> ## 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.

# Instrumenter

> Instrumenter utilities for livekit real-time communication integration utilities.

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

#### instrument\_livekit

```python theme={null}
def instrument_livekit(logger: Logger, callback: MaximLiveKitCallback = None)
```

Instrument LiveKit classes with logging.

This function adds logging instrumentation to LiveKit classes (Agent, JobContext, LLM)
by wrapping their methods with logging decorators. It logs method calls with their
arguments and keyword arguments.

The instrumentation:

1. Wraps all Agent methods starting with "on\_"
2. Wraps all JobContext methods (except special methods)
3. Wraps all LLM methods (except special methods)
