instrumenting-with-mlflow-tracing

Instruments Python and TypeScript applications with MLflow Tracing for LLM observability.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/FMurray/mlfts --skill instrumenting-with-mlflow-tracing-fmurray
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: instrumenting-with-mlflow-tracing
Source: https://github.com/FMurray/mlfts/tree/main/.agents/skills/instrumenting-with-mlflow-tracing
Command: npx skills add https://github.com/FMurray/mlfts --skill instrumenting-with-mlflow-tracing-fmurray

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Adding observability to LLM agents and AI applications requires knowing which operations to trace, which framework integrations to use, and how to configure production-grade tracing, which is scattered across extensive MLflow documentation. ## Core Features & Use Cases - Language-Specific Guidance: Provides dedicated instrumentation guides for Python and TypeScript/JavaScript projects, auto-detected via package.json or pyproject.toml. - Framework Integration Coverage: Covers tracing for LangGraph, LangChain, OpenAI, DSPy, CrewAI, and AutoGen applications. - Production & Advanced Patterns: Includes references for async tracing, multi-threading, PII redaction, distributed tracing, sampling, and feedback collection with mlflow.log_feedback(). - Use Case: A developer building a LangChain agent asks how to add tracing, and receives step-by-step instrumentation guidance including which operations to trace (LLM calls, retrieval, tool calls) and which to skip. ## Quick Start Ask how to add MLflow tracing to your Python or TypeScript LLM application and specify the framework you are using.

Frequently Asked Questions about instrumenting-with-mlflow-tracing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add MLflow tracing to my Python application?

MLflow tracing is added by instrumenting key operations like LLM calls, retrieval, and tool calls using MLflow's tracing APIs or auto-integrations. The skill's Python reference guide covers setup and framework-specific instructions.

How to trace a LangChain or LangGraph app with MLflow?

MLflow provides auto-instrumentation integrations for LangChain and LangGraph that capture LLM calls, chains, and agent steps as traces. Enable the integration and traces are logged to your configured MLflow tracking server.

Does MLflow tracing support TypeScript applications?

Yes, MLflow Tracing supports TypeScript and JavaScript applications through its TypeScript SDK. The skill includes a dedicated TypeScript reference guide covering instrumentation for Node.js-based LLM apps.

What operations should I trace in an LLM agent?

Trace root operations, LLM calls, retrieval queries, tool and function calls, agent decisions, and external service calls. Skip simple data transformations, string formatting, and utility functions to avoid noisy traces.

How do I reduce tracing overhead in production?

Use async logging for low-latency applications, configure sampling with MLFLOW_TRACE_SAMPLING_RATIO, and use the lightweight mlflow-tracing SDK. The production reference covers Docker and Kubernetes deployment configuration.

Can I collect user feedback on MLflow traces?

Yes, use mlflow.log_feedback() to record user ratings and comments on traces for evaluation and fine-tuning. Capture trace IDs to return to clients, and apply LLM-as-judge for automated evaluation.