Skip to content

feat(tracemetrics): Remove tracemetric from state#110786

Merged
narsaynorath merged 5 commits intomasterfrom
nar/feat/tracemetrics-remove-tracemetric-from-state
Mar 17, 2026
Merged

feat(tracemetrics): Remove tracemetric from state#110786
narsaynorath merged 5 commits intomasterfrom
nar/feat/tracemetrics-remove-tracemetric-from-state

Conversation

@narsaynorath
Copy link
Member

@narsaynorath narsaynorath commented Mar 16, 2026

Removes the traceMetric attribute from state and URLs for widget builder. When a widget is saved, this data is flattened into the aggregates and then parsed up for the widget builder, but since I changed the type of aggregates to account for more parameters in: #109899 then we're able to remove the layer of indirection here where we need to parse out the traceMetric from state and URLs

This is in preparation of being able to select multiple metrics in a single request. We can't be reliant on a top level parameter like this if we want to be dynamic.

The relevant validation and code that was in use for the aggregate selection now can be pushed out further to the metric selector since it's specific to that component.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 16, 2026
@narsaynorath narsaynorath marked this pull request as ready for review March 16, 2026 20:07
@narsaynorath narsaynorath requested a review from a team as a code owner March 16, 2026 20:07
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@narsaynorath narsaynorath merged commit f263cd3 into master Mar 17, 2026
63 checks passed
@narsaynorath narsaynorath deleted the nar/feat/tracemetrics-remove-tracemetric-from-state branch March 17, 2026 14:58
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.

2 participants