Skip to content

Conversation

@bcoe
Copy link
Member

@bcoe bcoe commented Nov 20, 2025

Talking with @narsaynorath, I believe we had logic in place, to restrict a single equation on a chart, that's only applicable to the errors dataset. This limitation does not exist on the spans dataset.

This addresses the problem of using equations with a significantly different scale of events than the default count() series.

Screenshot 2025-11-20 at 5 10 43 PM

I believe we had held over logic from the errors dataset, which requires
that a single series is selected before you can use an equation.

This limitation does not exist on the spans dataset.

This addresses the problem of using equations with a signifcantly different
scale than a series.
@bcoe bcoe requested a review from a team as a code owner November 20, 2025 22:12
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 20, 2025
// The spans dataset can have a single equation, so isOnlyFieldOrAggregate
// is not applicable. The errors dataset requires one series to be
// selected for equations to work.
state.dataset !== WidgetType.SPANS;

This comment was marked as resolved.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this suggestion from cursor is correct, isOnlyFieldOrAggregate is used to force there to be at least one series and equation. The spans dataset needs just one or the other.

Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

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

lgtm! thanks Ben 🎉

@bcoe bcoe merged commit 923c09e into master Nov 21, 2025
50 checks passed
@bcoe bcoe deleted the allow-single-equation branch November 21, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants