Enrich your traces by annotating chains and workflows in your app


@workflow(name="my_workflow") or @task(name="my_task").name argument is optional. If you don’t provide it, we will use the
function name as the workflow or task name.version argument
to the decorator: @workflow(name="my_workflow", version=2)@agent decorator to trace them as a single unit.
Each tool should be marked with @tool.@workflow, @task, @agent, and so forth for both sync and async methods.
The async-specific decorators (@aworkflow, @atask, etc.) are deprecated and will be removed in a future version.
See also a separate section on using threads in Python with OpenLLMetry.