This guide demonstrates how to use TrueFoundry OtelCollector along with the Traceloop SDK to instrument Python code. In this example, we’ll show how to instrument a simple Python application with nested function calls using Traceloop’s task decorators.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Create Tracing Project, API Key and copy tracing code
Follow the instructions in Getting Started to create a tracing project, generate API key and copy the
tracing code.
Add Tracing code to Python application
For Python applications, we need to add the
Traceloop.init() call to the application and use the @task decorator to trace functions.Python Code
