Skip to content

fix(tracemetrics): Metric panel title should use equation with label#113143

Draft
narsaynorath wants to merge 2 commits intonar/fix/tracemetrics-resync-all-metric-queries-on-changefrom
nar/fix/tracemetrics-equation-chart-labels
Draft

fix(tracemetrics): Metric panel title should use equation with label#113143
narsaynorath wants to merge 2 commits intonar/fix/tracemetrics-resync-all-metric-queries-on-changefrom
nar/fix/tracemetrics-equation-chart-labels

Conversation

@narsaynorath
Copy link
Copy Markdown
Member

@narsaynorath narsaynorath commented Apr 16, 2026

Primarily, the equation builder was supposed to avoid leaking the internal representation out of itself, but because we want to display it in another component (i.e. the chart title), we need to expose a way to hook into the internal value when a change is reported.

In this case, call the handleExpressionChange callback with both the resolved version, and the internal version so we can read it and store it in local state for the metric panel to use for the title. This only applies to equations right now but I've made the terminology more general (i.e. title, etc)

Ideally, useMetricLabel would have been able to provide this but I didn't really want to store more metadata higher than the metric panel, where it's relevant

Screenshot 2026-04-15 at 11 35 01 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 16, 2026
…e' into nar/fix/tracemetrics-equation-chart-labels
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.

1 participant