# Create anonymizer with function rules
anonymizer = create_anonymizer([mask_api_keys, anonymize_with_hash])
opik.hooks.add_anonymizer(anonymizer)
```

### Mixed Rules

Combine different rule types for comprehensive anonymization:

```python
import opik
import opik.hooks
from opik.anonymizer import create_anonymizer