Observability with MLflow
Agents can take different paths for the same request. MLflow records each run as a trace, so you can see what the agent did and why. Tracing is automatic for both agents: you do not need to configure anything.
See MLflow Integration for how MLflow is reached from the platform.
Find the traces
| Agent | Experiment name |
|---|---|
| OpenCode | BDA_ID |
| ADK | FATHER_ID, or BDA_ID if it is not available. Set MLFLOW_EXPERIMENT_NAME to override it. |
What a trace contains
- The request, the LLM calls, the tool calls and the final response, with latency and errors for each step.
- MCP tools called, with arguments and results.
- Tokens used: input, output and, where available, cached.
- The provider and model used.
- The model's reasoning, when the provider exposes it.
Traces carry a session identifier, so you can follow a whole conversation and see where it went wrong. On OpenCode, traces are written at the end of each turn, and token usage appears only if the provider reports it.
Model gateways
By default, both agents reach their model through the platform's agent gateway, so the agent itself does not hold the provider credentials. To use another OpenAI-compatible endpoint with the ADK Agent, such as an MLflow AI Gateway endpoint, set BASE_URL and API_KEY.
Send ADK traces elsewhere
| Setting | Effect |
|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | Also sends traces to an OpenTelemetry collector. |
TELEMETRY_BACKEND | Selects the active backends: auto, none, mlflow or otlp. |
Evaluate agents
You can use recorded traces as an evaluation dataset, scoring them with MLflow's built-in LLM judges or your own scorers. This lets you measure a change to a prompt, tool or model against real conversations.