Skip to content

Trace Comparison#17138

Merged
daniellok-db merged 25 commits intomlflow:masterfrom
joelrobin18:trace_comparison
Nov 26, 2025
Merged

Trace Comparison#17138
daniellok-db merged 25 commits intomlflow:masterfrom
joelrobin18:trace_comparison

Conversation

@joelrobin18
Copy link
Collaborator

@joelrobin18 joelrobin18 commented Aug 8, 2025

Related Issues/PRs

Fix #16711

What changes are proposed in this pull request?

Compare button for trace comparison

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests
Screenshot 2025-09-18 at 10 46 31 PM Screenshot 2025-09-18 at 10 46 12 PM

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.

Compare different traces

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)

Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
@joelrobin18 joelrobin18 changed the title [WIP] Trace Comparison Trace Comparison Aug 9, 2025
@github-actions github-actions bot added v3.2.1 area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server rn/feature Mention under Features in Changelogs. labels Aug 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2025

Documentation preview for fd2251b 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.

Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
);
}

if (isInComparisonView) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@joelrobin18 @daniellok-db I want to re-iterate the decision of showing summary view only, because since 3.3 we show metadata like trace id, latency, token counts, outside the summary view.

Screenshot 2025-09-29 at 8 55 43

I think these are important information for trace comparison. Then wondering if it is technically challenging to simply render the entire UI including this header and tree in the comparison view? It is probably more robust to changes like this.

Copy link
Collaborator

@daniellok-db daniellok-db left a comment

Choose a reason for hiding this comment

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

cc @joelrobin18 i think this is almost there but a few things (see video for reference):

  1. both sides should scroll together so comparison is easy when the traces are similar
  2. assessments should render above the tabs, and the header above assessments (we probably want to make a new component like ModelTraceExplorerComparisonLayout or something so we can rearrange the stuff)
  3. let's hide the assessment toggle everywhere if we're in the comparison view, and simply render a chevron to expand / collapse the assessments panel

LMK if you don't have time to address and I can simply push some updates to this PR. thanks for all the work so far on this!

Screen.Recording.2025-10-15.at.11.44.27.AM.mov

Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
@joelrobin18 joelrobin18 force-pushed the trace_comparison branch 2 times, most recently from 0d3df50 to c8d7225 Compare November 4, 2025 10:50
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
joelrobin18 and others added 6 commits November 5, 2025 08:02
Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
Signed-off-by: Daniel Lok <daniel.lok@databricks.com>
Signed-off-by: Daniel Lok <daniel.lok@databricks.com>
Signed-off-by: Daniel Lok <daniel.lok@databricks.com>
Signed-off-by: Daniel Lok <daniel.lok@databricks.com>
Copy link
Collaborator

@daniellok-db daniellok-db left a comment

Choose a reason for hiding this comment

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

LGTM!!

Signed-off-by: joelrobin18 <joelrobin1818@gmail.com>
@daniellok-db daniellok-db added this pull request to the merge queue Nov 26, 2025
Merged via the queue into mlflow:master with commit 8478589 Nov 26, 2025
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server rn/feature Mention under Features in Changelogs. v3.2.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Add "Compare" Button to Evaluate Outputs from Multiple LangChain Traces

3 participants