Python SDKTracing Clientis_recording()Copy pageSignature 1is_recording() -> bool Returns True if there is an active span that is recording, False otherwise. Example 1from respan import Respan, task, get_client23respan = Respan(api_key="your-api-key")45@task(name="guarded_task")6def guarded_task():7 client = get_client()8 if client.is_recording():9 client.add_event("task_running")10 return "done"1112guarded_task()