Skip to main content

Overview

add_event(name: str, attributes: Dict = None, timestamp: int = None) -> bool

Example

from keywordsai_tracing import task, get_client

@task(name="compute")
def compute():
    client = get_client()
    client.add_event("compute_started", {"records": 42})
    return 1 + 1

print(compute())