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

# Using BAML: Don't want to instrument all your functions?

> How to selectively instrument specific BAML functions

Starting with SDK version `v0.0.24`, you can selectively choose which BAML functions to instrument or exclude from instrumentation.

## How it works

Our `instrument_baml` command now accepts optional `include_functions` and `exclude_functions` parameters that give you fine-grained control over instrumentation.

## Usage Examples

### Instrument only specific functions

If you want to instrument only `myFunction1` and `myFunction2`:

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

instrument_baml("bedrock", include_functions=["myFunction1", "myFunction2"])
```

### Exclude specific functions

If you want to instrument everything except `myFunction1` and `myFunction2`:

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

instrument_baml("bedrock", exclude_functions=["myFunction1", "myFunction2"])
```

<Note>
  You cannot use both `include_functions` and `exclude_functions` at the same time. Choose the approach that makes more sense for your use case.
</Note>
