Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Learn about the different approaches you can take to add traces to Python and TypeScript generative AI application.
MLflow has three approaches to tracing for Python and TypeScript.
- Automatic - Add one line
mlflow.<library>.autolog()to automatically capture app logic for 20+ supported libraries. - Manual - Designed for custom logic and complex workflows, control what gets traced using Function Decorator APIs or low-level APIs.
- Combined - Mix both approaches for complete coverage.
Which approach should I use?
Start with automatic tracing. It's the fastest way to get traces working. Add manual tracing later if you need more control.
| Scenario | Recommendations |
|---|---|
| Use one GenAI library | Use automatic tracing for your selected library |
| Use LLM SDKs directly |
|
| Use multiple GenAI libraries or SDKs |
|
| All other scenarios or you need more control | Use manual tracing:
|