You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboards: equations lose the unit of their fields ($, duration) #124678
Frontend: getFieldRendererBase() in static/app/utils/discover/fieldRenderers.tsx uses a typed renderer for an equation only when the equation text matches a special field exactly.
Steps to reproduce
Send spans with gen_ai.usage.input_tokens, so that Sentry adds gen_ai.cost.total_tokens.
Make a big number widget with sum(gen_ai.cost.total_tokens). It shows $.
Make a big number widget with equation|sum(gen_ai.cost.total_tokens) / count_unique(gen_ai.conversation.id). It shows no $.
Related
Tables show currency with 2 decimals, so avg(gen_ai.cost.total_tokens) (about $0.002 per model call) shows as <$0.01. Chart axes show the full value.
@sergical this feels very similar to #124679, I think we can close this and just have one issue that's about supporting units in custom equations? (feel free to reopen if i interpreted this wrong!)
Activity
getsantry commentedon Sep 17, 2026
Assigning to @getsentry/support for routing ⏲️
linear-code commentedon Sep 17, 2026
ENG-8641
getsantry commentedon Sep 17, 2026
Routing to @getsentry/product-owners-dashboards for triage ⏲️
DominikB2014 commentedon Sep 17, 2026
@sergical this feels very similar to #124679, I think we can close this and just have one issue that's about supporting units in custom equations? (feel free to reopen if i interpreted this wrong!)