Distributed Tracing for LLM Agents: When MCP Makes Tool Calls Observable
📰 Medium · Python
Learn how to implement distributed tracing for LLM agents using OpenTelemetry, CrewAI, and Jaeger to improve observability and debug production failures
Action Steps
- Install OpenTelemetry and Jaeger to enable distributed tracing
- Configure CrewAI to generate a unique trace ID for each model loop and tool subprocess
- Use the trace ID to correlate logs and metrics across services
- Implement tracing for downstream APIs to identify issues in the action layer
- Visualize trace data using Jaeger to improve system understanding and debug production failures
Who Needs to Know This
Developers and engineers working with LLM agents and microservices can benefit from this technique to identify and debug issues in their systems
Key Insight
💡 Distributed tracing can help identify production failures in LLM systems that are often misattributed to the model
Share This
🔍 Improve LLM agent observability with distributed tracing using OpenTelemetry, CrewAI, and Jaeger! 🚀
Key Takeaways
Learn how to implement distributed tracing for LLM agents using OpenTelemetry, CrewAI, and Jaeger to improve observability and debug production failures
Full Article
Title: Distributed Tracing for LLM Agents: When MCP Makes Tool Calls Observable
URL Source: https://medium.com/@ekb.dev.ai/distributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a?source=rss------python-5
Published Time: 2026-05-24T14:31:28Z
Markdown Content:
[Sitemap](https://medium.com/sitemap/sitemap.xml)
[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)
[](https://medium.com/?source=post_page---top_nav_layout_nav-----------------------------------------)
Get app
[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)
[Search](https://medium.com/search?source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

# Distributed Tracing for LLM Agents: When MCP Makes Tool Calls Observable
[](https://medium.com/@ekb.dev.ai?source=post_page---byline--bb7a5a27726a---------------------------------------)
[EKB](https://medium.com/@ekb.dev.ai?source=post_page---byline--bb7a5a27726a---------------------------------------)
Follow
5 min read
·
May 24, 2026
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2Fbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&user=EKB&userId=93c6a3af257f&source=---header_actions--bb7a5a27726a---------------------clap_footer------------------)
1
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Frepost%2Fp%2Fbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&user=EKB&userId=93c6a3af257f&source=---header_actions--bb7a5a27726a---------------------repost_header------------------)
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fbookmark%2Fp%2Fbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=---header_actions--bb7a5a27726a---------------------bookmark_footer------------------)
[Listen](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Dbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=---header_actions--bb7a5a27726a---------------------post_audio_button------------------)
Share
_One trace ID across the model loop and the tool subprocess — using OpenTelemetry, CrewAI, and Jaeger._
Press enter or click to view image in full size

Production failures in LLM systems are often misattributed to the model. In practice, many incidents live in the **action layer**: a downstream API that tim
URL Source: https://medium.com/@ekb.dev.ai/distributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a?source=rss------python-5
Published Time: 2026-05-24T14:31:28Z
Markdown Content:
[Sitemap](https://medium.com/sitemap/sitemap.xml)
[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)
[](https://medium.com/?source=post_page---top_nav_layout_nav-----------------------------------------)
Get app
[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)
[Search](https://medium.com/search?source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

# Distributed Tracing for LLM Agents: When MCP Makes Tool Calls Observable
[](https://medium.com/@ekb.dev.ai?source=post_page---byline--bb7a5a27726a---------------------------------------)
[EKB](https://medium.com/@ekb.dev.ai?source=post_page---byline--bb7a5a27726a---------------------------------------)
Follow
5 min read
·
May 24, 2026
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2Fbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&user=EKB&userId=93c6a3af257f&source=---header_actions--bb7a5a27726a---------------------clap_footer------------------)
1
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Frepost%2Fp%2Fbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&user=EKB&userId=93c6a3af257f&source=---header_actions--bb7a5a27726a---------------------repost_header------------------)
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fbookmark%2Fp%2Fbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=---header_actions--bb7a5a27726a---------------------bookmark_footer------------------)
[Listen](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Dbb7a5a27726a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ekb.dev.ai%2Fdistributed-tracing-for-llm-agents-when-mcp-makes-tool-calls-observable-bb7a5a27726a&source=---header_actions--bb7a5a27726a---------------------post_audio_button------------------)
Share
_One trace ID across the model loop and the tool subprocess — using OpenTelemetry, CrewAI, and Jaeger._
Press enter or click to view image in full size

Production failures in LLM systems are often misattributed to the model. In practice, many incidents live in the **action layer**: a downstream API that tim
DeepCamp AI