---
title: Detect and monitor issues across MLflow traces
description: Use MLflow Issue Detection to find recurring problems across traces, review evidence, fix problems, and monitor production fixes.
canonical_url: https://docs.databricks.com/aws/en/mlflow3/genai/tracing/observe-with-traces/analyze-traces
---

# Detect and monitor issues across MLflow traces

> [!NOTE]
> **Beta**
>
> MLflow Issue Detection is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). A workspace admin must enable **MLflow Issue Detection** from the **Previews** page. See [Manage Databricks previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).

MLflow Issue Detection uses Genie Code to analyze traces in an MLflow experiment and find recurring quality and operational problems. It inspects inputs, outputs, spans, tool calls, timing, errors, assessments, and metadata, then groups related evidence into issues that you can investigate and fix, such as:

* A customer-support agent invents a 30-day refund policy when answering a return request.
* A research agent repeats the same web search five times, slowing the response and increasing tool and token costs.
* A travel agent omits the required `departure_date` argument, causing the booking tool to fail.
* An extraction agent returns prose instead of the JSON schema required by the calling application.

MLflow supports a continuous improvement cycle from discovery through production monitoring. You can review the traces behind an issue, fix and evaluate your application, and then track the issue rate after deployment.

![Issue detection lifecycle: detect recurring patterns, review trace evidence, fix and evaluate the agent, and monitor the issue rate in production.](https://docs.databricks.com/aws/en/images/mlflow3-genai/issue-detection-lifecycle.svg)

 

## Requirements

MLflow Issue Detection requires an experiment with traces stored in Unity Catalog. See [Store OpenTelemetry traces in Unity Catalog](https://docs.databricks.com/aws/en/mlflow3/genai/tracing/trace-unity-catalog.md).

## Start issue detection

Open an MLflow experiment, select the **Issues** tab, and click **Run issue detection**. Genie Code starts analyzing traces in the experiment. The analysis typically takes 5 to 30 minutes, depending on the number and size of the traces. You can leave the page and return later to review the results.

> [!TIP]
>
> Use [**Auto-approve** mode](https://docs.databricks.com/aws/en/genie-code/navigate-genie-code.md#approve-tools) in Genie Code to prevent the analysis from pausing for tool approval.

![The Issues tab with the Run issue detection button.](https://docs.databricks.com/aws/en/images/mlflow3-genai/issue-detection/run-issue-detection.png)

Alternatively, you can start the same workflow from the **Traces** tab by clicking **Detect Issues**.

## Review issues

After the analysis finishes, the **Issues** tab lists detected problems and shows supporting evidence for the selected issue. Each piece of evidence links to an affected source trace.

![The Issues tab with detected issues, supporting evidence for a selected issue, and the Enable Monitor button.](https://docs.databricks.com/aws/en/images/mlflow3-genai/issue-detection/review-issue-and-enable-monitor.png)

If a finding is not applicable, update the status to **Not an issue** using the dropdown in the upper-right corner. MLflow learns from this feedback to avoid surfacing similar issues in later detection runs.

## Fix issues with coding agents

Each issue includes a fix prompt with the context and representative traces that a coding agent needs to investigate the problem. Copy the prompt from the **Fix this issue** section and paste it into a coding agent running in your application repository. The agent uses the issue evidence to inspect the traces and code, propose a focused change, and validate the fix.

Before you use the prompt:

* Install the [MLflow skills](https://docs.databricks.com/aws/en/mlflow3/genai/recipes/set-up-coding-agent.md) in your coding agent.
* Make sure the coding agent has access to your Databricks workspace.

Review the proposed change before deployment. Then [evaluate the updated agent](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/evaluate-app.md) against representative cases to confirm the fix and check for regressions.

## Monitor a fix in production

A fix that works in development can still fail on production traffic. An issue monitor shows whether the issue rate decreases after deployment and whether the problem returns.

Select the issue and click **Enable Monitor** in the **Monitor** section. MLflow creates a [scorer](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/concepts/scorers.md) for the issue and backfills it across recent traces to establish a baseline. MLflow then runs the scorer online on a sample of new traces to track the issue rate in production.

![The Monitor chart showing flagged and unflagged traces and the issue rate over the last seven days.](https://docs.databricks.com/aws/en/images/mlflow3-genai/issue-detection/monitor-issue-rate.png)

After you deploy the fix, use the chart to compare the issue rate before and after deployment. When the issue no longer appears in production, mark it as **Resolved**.

## Schedule detection

Schedule issue detection to analyze new traces regularly.

Click **Schedule detection** on the **Issues** tab to choose how often MLflow scans for issues. You can limit analysis to a subset of traces by filtering by a metadata field or tag value, such as `environment = production`.

![The Schedule issue detection dialog with cadence and trace filter settings.](https://docs.databricks.com/aws/en/images/mlflow3-genai/issue-detection/schedule-issue-detection.png)

### Customize detection criteria

Click ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) on the **Issues** page to configure issue detection. You can tell MLflow which findings matter to your application, turn built-in focus areas on or off, and add custom categories for application-specific failures. For example, you can prioritize user frustration and ignore latency problems.

## <a id="access-issues-using-the-rest-api" />Access issues using the REST API

Use the Issues REST API to integrate issue triage with external workflows. The API uses issue resource names in the form `experiments/<experiment-id>/issues/<issue-id>`.

### Search issues

Search supports title text, status, severity, category, tag, sorting, and pagination. The following request returns open high-severity issues with their full descriptions:

```bash
curl --request POST \
  "https://<workspace-host>/api/2.0/mlflow/experiments/<experiment-id>/issues:search" \
  --header "Authorization: Bearer <databricks-token>" \
  --header "Content-Type: application/json" \
  --data '{
    "parent": "experiments/<experiment-id>",
    "statuses": ["PENDING"],
    "severities": ["HIGH"],
    "sort_key": "LAST_SEEN_TIME",
    "sort_order": "DESCENDING",
    "page_size": 100,
    "view": "FULL"
  }'
```

### Update an issue

To update an issue, include an update mask. For example, the following request marks an issue as resolved:

```bash
curl --request PATCH \
  "https://<workspace-host>/api/2.0/mlflow/experiments/<experiment-id>/issues/<issue-id>?update_mask=status" \
  --header "Authorization: Bearer <databricks-token>" \
  --header "Content-Type: application/json" \
  --data '{"status": "RESOLVED"}'
```

## Cost attribution

Manual and scheduled issue detection runs use Genie Code. For pricing information, see [Genie pricing](https://www.databricks.com/product/pricing/genie).

## Additional resources

* [View traces in the Databricks MLflow UI](https://docs.databricks.com/aws/en/mlflow3/genai/tracing/observe-with-traces/ui-traces.md)
* [Genie Code for agent observability and evaluation](https://docs.databricks.com/aws/en/mlflow3/genai/getting-started/genie-code.md)
* [MLflow MCP server](https://docs.databricks.com/aws/en/mlflow3/genai/tracing/mlflow-mcp.md)
* [Set up production monitoring](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/production-monitoring.md)
* [Programmatic access to traces](https://docs.databricks.com/aws/en/mlflow3/genai/tracing/observe-with-traces/query-via-sdk.md)
