Skip to content

cookbook: add MLflow observability integration via OpenInference#6930

Open
ysolanky wants to merge 2 commits intomainfrom
ysolanky/sdk-vs-agentos-deploy
Open

cookbook: add MLflow observability integration via OpenInference#6930
ysolanky wants to merge 2 commits intomainfrom
ysolanky/sdk-vs-agentos-deploy

Conversation

@ysolanky
Copy link
Member

Summary

Add a cookbook example showing how to instrument Agno agents with OpenInference and send traces to an MLflow Tracking Server via OTLP.

Follows the same pattern as existing observability integrations (Langfuse, LangSmith, Opik, etc.) using OTLPSpanExporter pointed at MLflow's /api/2.0/mlflow/traces endpoint.

Type of change

  • New feature
  • Other: Cookbook example

Checklist

  • Code complies with style guidelines
  • Ran format/validation scripts (./scripts/format.sh and ./scripts/validate.sh)
  • Self-review completed
  • Documentation updated (comments, docstrings)
  • Examples and guides: Relevant cookbook examples have been included or updated (if applicable)
  • Tested in clean environment
  • Tests added/updated (if applicable)

Additional Notes

Files added/changed:

  • cookbook/92_integrations/observability/mlflow_via_openinference.py — new cookbook
  • cookbook/92_integrations/observability/README.md — added to integrations list

Usage:

# Start MLflow tracking server
mlflow server --host 127.0.0.1 --port 5000

# Run the cookbook
.venvs/demo/bin/python cookbook/92_integrations/observability/mlflow_via_openinference.py

Dependencies: mlflow, opentelemetry-exporter-otlp-proto-http, openinference-instrumentation-agno

🤖 Generated with Claude Code

Add cookbook example showing how to instrument Agno agents with
OpenInference and send traces to MLflow via OTLP.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ysolanky ysolanky requested a review from a team as a code owner March 10, 2026 03:07
Copy link
Contributor

@kausmeows kausmeows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this- agno-agi/docs#330 (comment)

the user had a different type of cookbook, so we might want to add that one as well.

Demonstrates instrumenting an Agno agent with OpenInference and sending traces to MLflow.

Requirements:
pip install mlflow opentelemetry-exporter-otlp-proto-http openinference-instrumentation-agno
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pip install mlflow opentelemetry-exporter-otlp-proto-http openinference-instrumentation-agno
pip install -U mlflow opentelemetry-exporter-otlp-proto-http openinference-instrumentation-agno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants