chore: remove p99_latency references from funnel metrics

This commit is contained in:
ahmadshaheer 2025-06-02 09:15:20 +04:30 committed by Shivanshu Raj Shrivastava
parent 988495b612
commit d62b1cf49f
No known key found for this signature in database
GPG Key ID: D34D26C62AC3E9AE
2 changed files with 2 additions and 9 deletions

View File

@ -196,8 +196,6 @@ export interface FunnelOverviewResponse {
avg_rate: number;
conversion_rate: number | null;
errors: number;
// TODO(shaheer): remove p99_latency once we have support for latency
p99_latency: number;
latency: number;
};
}>;

View File

@ -49,11 +49,7 @@ export function useFunnelMetrics({
},
{
title: `P99 Latency`,
value: getYAxisFormattedValue(
// TODO(shaheer): remove p99_latency once we have support for latency
(sourceData.latency ?? sourceData.p99_latency).toString(),
'ms',
),
value: getYAxisFormattedValue(sourceData.latency.toString(), 'ms'),
},
];
}, [overviewData?.payload?.data]);
@ -119,8 +115,7 @@ export function useFunnelStepsMetrics({
{
title: `${latencyType?.toUpperCase()} Latency`,
value: getYAxisFormattedValue(
// TODO(shaheer): remove p99_latency once we have support for latency
((sourceData.latency ?? sourceData.p99_latency) * 1_000_000).toString(),
(sourceData.latency * 1_000_000).toString(),
'ns',
),
},