Create a tracing project
Trace Projects
tab.New Trace Project
and enter the project name.Creating tracing projects
Generate API Key
Install Traceloop SDK
Copy the code from UI to add to your application
Click on Log Traces button to generate the code snippet
Add the code to your application
TFY_API_KEY
as the API key you generated in step 2. Run your application and view logged trace
@workflow
decorator to track and annotate the workflow. Let’s say your workflow calls more functions you can annotate them as @task
@agent
decorator to trace the agent as a single unit. Additionally, each individual tool within the agent should be annotated with the @tool
decorator.