domino.agents package provides tracing, evaluation, and search capabilities for agentic systems. This is part of the python-domino library.
The canonical import path is
Some documentation may reference
from domino.agents.tracing import …Some documentation may reference
domino.aisystems.tracing. This is an older alias. Both paths resolve to the same module.add_tracing
Decorator that starts an MLflow span for the decorated function. If an existing trace is in progress, appends a span to it; otherwise creates a new trace.init_tracing
Initialize MLflow autologging and set the active experiment to enable tracing. Used to initialize logging in both development and production modes.-
In production mode, the environment variables
DOMINO_AGENT_IS_PRODandDOMINO_APP_IDmust be set. -
Call
init_tracing()before your app starts serving requests.
search_traces
Search for traces in a development-mode evaluation run. Returns a paginated response of trace summaries.search_agent_traces
Search for traces from a deployed production agent. Filter by agent version, trace name, and time range. Ifagent_version is not provided, searches across all versions.
Data classes
EvaluationResult
TraceSummary
SpanSummary
SearchTracesResponse
log_evaluation
Log an evaluation result against an existing trace. Used for ad-hoc or production evaluations where you evaluate traces after they’ve been collected such as in a scheduled Job.DominoAgentContext
TheDominoAgentContext wrapper from domino.agents.logging creates an MLflow agent version that stores traces and logged parameters.