Skip to main content

Integrating Agno with MLflow Observability

MLflow can automatically instrument your Agno agents - capturing agent interactions, model/tool calls, inputs/outputs, and timing and surface them in the Observability (Traces) UI.

Prerequisites

1) Install packages

Use your preferred LLM provider package if not OpenAI.

2) Tracking server / UI

  • Local: run an MLflow server/UI or mlflow ui for quick local tests.
  • Remote: point to your team’s MLflow Tracking Server.

3) Authentication & configuration

Standard MLflow env vars:

Quickstart: Autologging Agno → MLflow Observability

View your traces

Open your MLflow UI and:
  • Select the agno-observation-demo experiment → open the latest Run.
  • Go to Observability / Traces (or the Traces tab in the run) to inspect spans:
    • Agent & model calls (LLM invocations)
    • Tool calls, inputs/outputs
    • Timing, status, and attributes

Notes

  • Autologging: Use mlflow.agno.autolog() before creating/running agents.
  • Runs & traces: Wrap your workflow in with mlflow.start_run(...): so runs and traces are grouped.
  • Artifacts: Use helpers like mlflow.log_text(...), mlflow.log_dict(...), or mlflow.log_figure(...) to attach outputs to the run.

This setup routes Agno’s agent/model/tool activity into MLflow Observability, letting you observe every span and correlate rich traces with your experiment runs and artifacts.