Skip to main content

Overview

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

Example

from keywordsai_tracing import task, get_client

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

print(record_state())