Setup
- Install the Langtrace’s SDK and initialize the SDK in your code.
- Install the Agno Library.
- Setup environment variables:
Usage
Initialize Langtrace before creating your Phidata agent:Python
What’s being traced?
With Langtrace, the following operations are automatically traced:-
Agent Run Operations:
- Input/output content
- Run duration and timestamps
- Stream events for streaming responses
-
Tool Calls:
- Function name and parameters
- Execution time
- Return values and errors
-
Memory Operations:
- Memory updates
- Chat history retrievals
- User memory creation

