<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj" -->

---
title: How to Trace Multi-Agent AI Swarms with Jaeger v2
description: A practical guide to adding distributed tracing to multi-agent AI swarms using Jaeger v2 and OpenTelemetry. Covers setting up Jaeger v2 with Docker (including...
canonical: https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Trace Multi-Agent AI Swarms with Jaeger v2 | daily.dev
og:description: A practical guide to adding distributed tracing to multi-agent AI swarms using Jaeger v2 and OpenTelemetry. Covers setting up Jaeger v2 with Docker (including...
og:url: https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj
og:image: https://api.daily.dev/og/posts/PSaaeCjYj.png
og:image:alt: How to Trace Multi-Agent AI Swarms with Jaeger v2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Trace Multi-Agent AI Swarms with Jaeger v2

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · 10 min read · 1 upvotes · 0 comments

## Summary

A practical guide to adding distributed tracing to multi-agent AI swarms using Jaeger v2 and OpenTelemetry. Covers setting up Jaeger v2 with Docker (including persistent Badger storage and permission fixes), wiring Claude Code lifecycle hooks to emit spans via Python, and a span hierarchy model that captures subagent activity, token counts, and tool calls. Includes lessons learned: correlating pre/post tool events without a shared ID, persisting span context across subprocess invocations via temp files, flush timeout tuning, and a full environment variable reference.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/multi-agent-ai-swarms-tracing>

## Similar posts on daily.dev

- [Distributed tracing for agentic workflows with OpenTelemetry](https://daily.dev/posts/distributed-tracing-for-agentic-workflows-with-opentelemetry-3suufjdue) · Red Hat Developer · 0 upvotes · 0 comments
- [Jaeger adopts OpenTelemetry at its core to solve the AI agent observability gap](https://daily.dev/posts/jaeger-adopts-opentelemetry-at-its-core-to-solve-the-ai-agent-observability-gap-7ufkqbnb5) · The New Stack · 1 upvotes · 0 comments
- [How Jaeger is evolving to trace AI agents with OpenTelemetry](https://daily.dev/posts/how-jaeger-is-evolving-to-trace-ai-agents-with-opentelemetry-wbwtfypo7) · CNCF · 4 upvotes · 0 comments
- [Untitled](https://daily.dev/posts/untitled-32fq7pu5y) · SitePoint · 1 upvotes · 0 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#ai-agents](https://daily.dev/tags/ai-agents), [#observability](https://daily.dev/tags/observability), [#opentelemetry](https://daily.dev/tags/opentelemetry)

[View this post on daily.dev](https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Trace Multi-Agent AI Swarms with Jaeger v2","url":"https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj"},"datePublished":"2026-04-24T05:21:43.485Z","dateModified":"2026-04-24T05:22:08.278Z","description":"A practical guide to adding distributed tracing to multi-agent AI swarms using Jaeger v2 and OpenTelemetry. Covers setting up Jaeger v2 with Docker (including...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1a7a18271d99ce87ce87895087e5fd0d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1a7a18271d99ce87ce87895087e5fd0d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"freeCodeCamp","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp","url":"https://daily.dev/sources/freecodecamp"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-trace-multi-agent-ai-swarms-with-jaeger-v2-psaaecjyj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devops,ai-agents,observability,opentelemetry","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"How to Trace Multi-Agent AI Swarms with Jaeger v2"}]}
```

