Managing Observability

Cloudera Agent Studio records a trace for each agent run in MLflow—an open-source platform for managing machine learning and AI lifecycles—and reuses those traces as inputs for workflow evaluations.

Every agent and environment pair maps to a dedicated MLflow experiment to keep authoring activity separate from deployed workloads.

Agents running in Cloudera Agent Studio emit OpenTelemetry GenAI spans. A trace groups the spans of one agent run, for example, the model calls and tool calls that the agent makes when answering a request. Agent Studio sends the traces through an OpenTelemetry collector, which applies redaction, noise filtering, and sampling, and then stores them in MLflow. For more information on the collector stages, see Trace sampling and redaction.

Trace environments and experiments

Agent Studio keeps traces for the following environments:

  • Authoring: Traces from agents you test while building them before publishing them to the catalog. The product uses the value authoring for this environment.
  • Production: Traces from deployed agents. The product uses the value deployed for this environment.

Each agent and environment uses the following MLflow experiment naming formats:

  • Deployed environment: dep-{agent_id}-deployed
  • Authoring environment: harness-{username}-{agent_id}-authoring

If a cluster ID is configured for your deployment, {cluster_id}/ prefixes the experiment name. You can view the agent name and other details in the Tags section of the MLflow experiment.

Trace and run statuses

A trace has a status of ok, error, or in_progress. The run that produced the trace has a separate run status: completed, awaiting_human, error, cancelled, or resumed.

A trace for a run that pauses for human input keeps the trace status ok. The run status is awaiting_human. When the run continues, the status of the paused trace changes to resumed, and Agent Studio records the continuation as a new trace linked to the paused trace.

Trace summary and details

Each trace summary carries the following information:

  • The trace ID, start time, duration, trace status, and run status.
  • The agent ID, agent version, environment, session ID, and run ID.
  • A preview of the input and output.
  • The scores that evaluations produced for the trace, if any.

The trace detail adds the tree of spans, with the name, start time, duration, status, and attributes of each span.

Trace access permissions

Access to traces follows the roles that your administrator assigns. MLflow provides users read-only access to permitted experiments. Users cannot write to or delete traces in MLflow.

The following table lists trace access permissions by role:

Table 1. Trace access permissions by role
Role Authoring traces Production traces
Admin All agents All agents
Builder Own agents only No access
Observer No access All agents
User No access No access

Observer is the only role with the view_production_trace and export_production_trace actions. For more information on role permissions, see User roles and capabilities.

Both Observer and Admin have the view_production_trace permission, while only Observer has export_production_trace. Trace export is available through the API only. For more information on role permissions, see User roles and capabilities.

If an access request fails, MLflow returns one of the following errors:

  • ROLE_REQUIRED error code: Your role does not have trace access.
  • RBAC_UNAVAILABLE error code: The access-control service is unreachable.
  • UNAUTHORIZED error code: No user identity reaches MLflow.

MLflow traces

In the left navigation, Observability opens MLflow in a new browser tab. The link requires that the MLflow URL is configured for your deployment. From a deployment, the deployment details page links to the MLflow traces for that deployment. For more information, see Viewing deployment details, evaluations, and MLflow traces. On the Evaluations page, View in MLflow opens the corresponding evaluation run in MLflow. For more information, see Managing workflow evaluations.

For information on finding agent traces, see Viewing traces in MLflow.

Engine logs

Engine logs are separate from agent traces. The engine Telemetry tab in the Anywhere Cloud Console controls where Agent Studio engine logs are stored and which patterns Agent Studio masks before it exports telemetry. For more information, see Trace sampling and redaction.