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

# is_recording()

> Check if the current span is recording

## Overview

Returns `True` if there is an active recording span, otherwise `False`.

## Example

```python theme={"system"}
from keywordsai_tracing import task, get_client

@task(name="record_state")
def record_state():
    client = get_client()
    return client.is_recording()

print(record_state())
```
