Skip to content

Commit 2bc9150

Browse files
authored
fix(dashboard): Correctly validate span and tracemetrics aggregates
1 parent d171428 commit 2bc9150

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/types/dashboard.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ function extractFunctionName(aggregate: string): string {
388388
* Example: `p50(value,completion.duration_ms,distribution,none)`
389389
*/
390390
function isTracemetricsAggregate(aggregate: string): boolean {
391+
// equation| prefix denotes a formula combining multiple tracemetrics aggregates
392+
if (aggregate.startsWith("equation|")) {
393+
return true;
394+
}
391395
const parenIdx = aggregate.indexOf("(");
392396
if (parenIdx < 0) {
393397
return false;

0 commit comments

Comments
 (0)