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

# Logging many records for a single LLM interaction?

> How to suppress instrumentation when you have too many logging records

If you're experiencing excessive logging for single LLM interactions, you can use the `suppress_instrumentation` function to temporarily disable all future instrumentation.

```python theme={null}
from atla_insights import suppress_instrumentation

# This will suppress all future instrumentation
suppress_instrumentation()
```

Once you run this command, it will suppress all future instrumentation, which should reduce the volume of records being logged.

### Conditional instrumentation

You can also conditionally suppress instrumentation based on your application logic:

```python theme={null}
from atla_insights import suppress_instrumentation
import os

# Only suppress in development
if os.getenv("ENVIRONMENT") == "development":
    suppress_instrumentation()
```

### Context-specific suppression

For more granular control, you might want to suppress instrumentation around specific operations:

```python theme={null}
from atla_insights import suppress_instrumentation, configure

def batch_process_data(data_items):
    # Suppress instrumentation for batch operations
    suppress_instrumentation()
    
    for item in data_items:
        process_item(item)  # This won't be traced
    
    # Re-enable for other operations
    configure(token="<YOUR_TOKEN>")  # Re-configure to re-enable
```

<Warning>
  `suppress_instrumentation()` disables all future instrumentation globally. Make sure this is the behavior you want, or consider using sampling or conditional logic instead.
</Warning>

## Re-enabling Instrumentation

To re-enable instrumentation after suppressing it, simply reconfigure Atla:

```python theme={null}
from atla_insights import configure

# Re-enable instrumentation
configure(token="<YOUR_ATLA_INSIGHTS_TOKEN>")
```
