0
Dashboards: let an equation show as a percentage and set its decimal places
Source: getsentry/sentry#124679 · opened by @sergical
What happens A share is always an equation, and Sentry shows it as a raw number with all its decimals. | Widget query | Shows | Wanted | |---|---|---| | equation\|100 * sum(gen_ai.usage.cache_read.input_tokens) / sum(gen_ai.usage.input_tokens) | 83.6758 | 83.7% | | equation\|(sum(gen_ai.usage.input_tokens) - sum(gen_ai.usage.cache_read.input_tokens)) / count() (table column) | 1,635.3072 | 1,635 | A widget has no setting for the type or the decimal places of an equation, so the only place for "%" is the widget title. Big number thresholds work on the value, but the value still shows without "%". The prompt cache hit rate is one of the main numbers for AI agent cost, and it is a ratio of two sums. Expected One or both of these: 1. A per-column setting on a widget query for an equation: output type (number, percentage, currency, duration) and decimal places. 2. a / b where a and b have the same type is typed as percentage and shows with the existing percentage…
No pledges yet. Be the first to back this.
Comments
Similar requests
Dashboards - Support reusable named equations referenced across widgets
1 vote · 0 comments
Dashboards Support min/max/clamp functions in dashboard custom equations
1 vote · 0 comments
Metric charts: annotate the timeline when a metric's equation/definition changes
0 votes · 0 comments
Dashboard widgets: support metric equations for derived values (e.g. occurrence rate)
3 votes · 0 comments
Improve UX for equations
0 votes · 0 comments
No comments yet.