Musterby Elitery
Integrations

Agno

Trace Agno agents in Muster via OpenLit instrumentation.

Agno is a Python framework for building AI agents. Muster captures Agno runs through OpenLit instrumentation, which forwards OpenTelemetry spans for every agent invocation.

Setup

%pip install agno openai langfuse yfinance openlit
import os

os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-..."
os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-..."
os.environ["LANGFUSE_BASE_URL"] = "https://app.getmuster.io"
os.environ["OPENAI_API_KEY"] = "sk-proj-..."
from langfuse import get_client

langfuse = get_client()
if langfuse.auth_check():
    print("Muster client is authenticated and ready!")

Instrument Agno

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
import openlit

openlit.init(tracer=langfuse._otel_tracer, disable_batch=True)

agent = Agent(
    model=OpenAIChat(id="gpt-4o-mini"),
    tools=[DuckDuckGoTools()],
    debug_mode=True,
)

agent.print_response("Tell me about Muster")

See also