Skip to main content
Automatically capture agent runs, model calls, and tool executions from Microsoft Agent Framework through its built-in OpenTelemetry emission — no manual instrumentation of the framework required.

Setup

Initialize TraceRoot before importing agent_framework, so the OpenTelemetry instrumentation is wired up before the framework emits its first span.

Usage

Once initialized, every agent invocation, model call, and tool execution is captured automatically:
Tools are plain functions — Agent Framework already emits an execute_tool span for each call, so they don’t need manual decoration.

What Gets Captured

Run the example

Clone the repo and run a complete multi-agent example end-to-end.

Python

Run the Python example