Observability for Microsoft Agent Framework (Python) with Opik
Observability for Microsoft Agent Framework (Python) with Opik
Observability for Microsoft Agent Framework (Python) with Opik
Microsoft Agent Framework is a comprehensive multi-language framework for building, orchestrating, and deploying AI agents and multi-agent workflows with support for both Python and .NET implementations.
The framework provides everything from simple chat agents to complex multi-agent workflows with graph-based orchestration, built-in OpenTelemetry integration for distributed tracing and monitoring, and a flexible middleware system for request/response processing.
Comet provides a hosted version of the Opik platform, simply create an account and grab your API Key.
You can also run the Opik platform locally, see the installation guide for more information.

To use the Microsoft Agent Framework integration with Opik, you will need to have the Agent Framework and the required OpenTelemetry packages installed:
In addition, you will need to set the following environment variables to configure OpenTelemetry to send data to Opik:
If you are using Opik Cloud, you will need to set the following environment variables:
To log the traces to a specific project, you can add the
projectName parameter to the OTEL_EXPORTER_OTLP_HEADERS
environment variable:
You can also update the Comet-Workspace parameter to a different
value if you would like to log the data to a different workspace.
The Microsoft Agent Framework has built-in OpenTelemetry instrumentation. Once you’ve configured the environment variables above, you can start creating agents and their traces will automatically be sent to Opik:
The framework will automatically:
If you would like to see us improve this integration, simply open a new feature request on Github.