Skip to content

Add span status filter support to traces UI#20541

Merged
serena-ruan merged 3 commits intomasterfrom
stack/span_status_filter_ui
Feb 6, 2026
Merged

Add span status filter support to traces UI#20541
serena-ruan merged 3 commits intomasterfrom
stack/span_status_filter_ui

Conversation

@serena-ruan
Copy link
Collaborator

@serena-ruan serena-ruan commented Feb 3, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Related Issues/PRs

#xxx

What changes are proposed in this pull request?

Support span status filter since backend already supports it

Screen.Recording.2026-02-03.at.8.51.34.PM.mov

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.
  • Yes. I've updated:
    • Examples
    • API references
    • Instructions

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/prompts: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Should this PR be included in the next patch release?

Yes should be selected for bug fixes, documentation updates, and other small changes. No should be selected for new features and larger changes. If you're unsure about the release classification of this PR, leave this unchecked to let the maintainers decide.

What is a minor/patch release?
  • Minor release: a release that increments the second part of the version number (e.g., 1.2.0 -> 1.3.0).
    Bug fixes, doc updates and new features usually go into minor releases.
  • Patch release: a release that increments the third part of the version number (e.g., 1.2.0 -> 1.2.1).
    Bug fixes and doc updates usually go into patch releases.
  • Yes (this PR will be cherry-picked and included in the next patch release)
  • No (this PR will be included in the next minor release)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

🛠 DevTools 🛠

Install mlflow from this PR

# mlflow
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/20541/merge
# mlflow-skinny
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/20541/merge#subdirectory=libs/skinny

For Databricks, use the following command:

%sh curl -LsSf https://raw.githubusercontent.com/mlflow/mlflow/HEAD/dev/install-skinny.sh | sh -s pull/20541/merge

@serena-ruan
Copy link
Collaborator Author

/polish

@github-actions github-actions bot added the rn/none List under Small Changes in Changelogs. label Feb 3, 2026
@github-actions github-actions bot changed the title support span status filter Add span status filter support to traces search and UI Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds UI support for filtering traces by span status (OK, ERROR, UNSET), building on backend support added in PR #20540. The PR also refactors URL generation utilities for assessment chart tooltips to improve maintainability.

Changes:

  • Added span status filter support to the traces table UI with EQUALS and NOT_EQUALS operators
  • Refactored URL generation functions for assessment charts to support flexible filter composition
  • Enhanced assessment chart tooltips to link to traces filtered by time range and assessment existence
  • Fixed backend span filter logic to ensure multiple conditions apply to the same span

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/store/tracking/test_sqlalchemy_store.py Added test verifying span filters correctly match conditions on the same span
mlflow/store/tracking/sqlalchemy_store.py Fixed span filter combination to apply all conditions to the same span via single subquery
mlflow/server/js/src/shared/web-shared/genai-traces-table/hooks/useTableColumns.tsx Added SPAN_STATUS_COLUMN_ID constant for span status filtering
mlflow/server/js/src/shared/web-shared/genai-traces-table/hooks/useMlflowTraces.tsx Added span status filter handling in filter string generation
mlflow/server/js/src/shared/web-shared/genai-traces-table/hooks/useMlflowTraces.test.tsx Added test for span status filter with EQUALS operator
mlflow/server/js/src/shared/web-shared/genai-traces-table/components/filters/TableFilterItem.tsx Added span status to available filter options with EQUALS/NOT_EQUALS operators
mlflow/server/js/src/experiment-tracking/pages/experiment-overview/hooks/useTraceAssessmentChartData.ts Added timestampMs field to chart data points for time-based navigation
mlflow/server/js/src/experiment-tracking/pages/experiment-overview/components/TraceAssessmentChart.tsx Enhanced time series tooltip to link to traces filtered by time and assessment
mlflow/server/js/src/experiment-tracking/pages/experiment-overview/components/OverviewChartComponents.tsx Refactored URL generation with helper functions for flexible filter composition
mlflow/server/js/src/experiment-tracking/pages/experiment-overview/components/OverviewChartComponents.test.tsx Updated tests to reflect refactored URL generation functions

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Documentation preview for 1a659fc is available at:

More info
  • Ignore this comment if this PR does not change the documentation.
  • The preview is updated when a new commit is pushed to this PR.
  • This comment was created by this workflow run.
  • The documentation was built by this workflow run.

@serena-ruan serena-ruan force-pushed the stack/span_status_filter_ui branch from afb7725 to 16d81a4 Compare February 4, 2026 03:11
@serena-ruan serena-ruan changed the title Add span status filter support to traces search and UI Add span status filter support to traces UI Feb 4, 2026
Signed-off-by: Serena Ruan <serena.rxy@gmail.com>
Signed-off-by: Serena Ruan <serena.rxy@gmail.com>
Signed-off-by: Serena Ruan <serena.rxy@gmail.com>
@serena-ruan serena-ruan force-pushed the stack/span_status_filter_ui branch from 16d81a4 to 1a659fc Compare February 6, 2026 03:42
@serena-ruan serena-ruan added this pull request to the merge queue Feb 6, 2026
Merged via the queue into master with commit 8e9155e Feb 6, 2026
52 of 53 checks passed
@serena-ruan serena-ruan deleted the stack/span_status_filter_ui branch February 6, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rn/none List under Small Changes in Changelogs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants