mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 07:38:29 +00:00
2.0 KiB
2.0 KiB
title, description
| title | description |
|---|---|
| CrewAI Agent Monitoring with Langtrace | How to monitor cost, latency, and performance of CrewAI Agents using Langtrace. |
Langtrace Overview
Langtrace is an open-source tool that helps you set up observability and evaluations for LLMs, LLM frameworks, and VectorDB. With Langtrace, you can get deep visibility into the cost, latency, and performance of your CrewAI Agents. Additionally, you can log the hyperparameters and monitor for any performance regressions and set up a process to continuously improve your Agents.
Setup Instructions
- Sign up for Langtrace by going to https://langtrace.ai/signup.
- Create a project and generate an API key.
- Install Langtrace in your code using the following commands. Note: For detailed instructions on integrating Langtrace, you can check out the official docs from here.
# Install the SDK
pip install langtrace-python-sdk
# Import it into your project
from langtrace_python_sdk import langtrace # Must precede any llm module imports
langtrace.init(api_key = '<LANGTRACE_API_KEY>')
Features
- LLM Token and Cost tracking
- Trace graph showing detailed execution steps with latency and logs
- Dataset curation using manual annotation
- Prompt versioning and management
- Prompt Playground with comparison views between models
- Testing and Evaluations

