The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
#29
ddux034297ac89ff
diff --git a/backend/app/models/endpoint.model.go b/backend/app/models/endpoint.model.goindex 16b4c208..9756be3b 100644--- a/backend/app/models/endpoint.model.go+++ b/backend/app/models/endpoint.model.go@@ -26,6 +26,7 @@ type EndpointStats struct {Count uint64 `json:"count"`P50Duration time.Duration `json:"p50Duration"`P95Duration time.Duration `json:"p95Duration"`+ P99Duration time.Duration `json:"p99Duration"`AvgDuration time.Duration `json:"avgDuration"`LastSeen time.Time `json:"lastSeen"`Impact float64 `json:"impact"` // 0-1 Apdex-based impact scorediff --git a/backend/app/repositories/endpoint.repository.go b/backend/app/repositories/endpoint.repository.goindex 557e4d32..c24df1e0 100644--- a/backend/app/repositories/endpoint.repository.go+++ b/backend/app/repositories/endpoint.repository.go@@ -99,6 +99,7 @@ func (e *endpointRepository) FindGroupedByEndpoint(ctx context.Context, projectI"count": "count","p50_duration": "p50_duration","p95_duration": "p95_duration",+ "p99_duration": "p99_duration","avg_duration": "avg_duration","last_seen": "last_seen","impact": "impact",@@ -122,6 +123,7 @@ func (e *endpointRepository) FindGroupedByEndpoint(ctx context.Context, projectIcount() as count,quantile(0.5)(duration) as p50_duration,quantile(0.95)(duration) as p95_duration,+ quantile(0.99)(duration) as p99_duration,avg(duration) as avg_duration,max(recorded_at) as last_seen,greatest(@@ -157,12 +159,13 @@ func (e *endpointRepository) FindGroupedByEndpoint(ctx context.Context, projectIvar stats []models.EndpointStatsfor rows.Next() {var s models.EndpointStats- var p50, p95, avg float64- if err := rows.Scan(&s.Endpoint, &s.Count, &p50, &p95, &avg, &s.LastSeen, &s.Impact); err != nil {+ var p50, p95, p99, avg float64+ if err := rows.Scan(&s.Endpoint, &s.Count, &p50, &p95, &p99, &avg, &s.LastSeen, &s.Impact); err != nil {return nil, 0, err}s.P50Duration = time.Duration(p50)s.P95Duration = time.Duration(p95)+ s.P99Duration = time.Duration(p99)s.AvgDuration = time.Duration(avg)stats = append(stats, s)}diff --git a/backend/backend b/backend/backendindex 718d5891..f8529a15 100755Binary files a/backend/backend and b/backend/backend differdiff --git a/frontend/src/routes/endpoints/+page.svelte b/frontend/src/routes/endpoints/+page.svelteindex 3a64dd97..51743d2b 100644--- a/frontend/src/routes/endpoints/+page.svelte+++ b/frontend/src/routes/endpoints/+page.svelte@@ -40,12 +40,13 @@count: number;p50Duration: number;p95Duration: number;+ p99Duration: number;avgDuration: number;lastSeen: string;impact: number; // 0-1 Apdex-based impact score from backend};- type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'last_seen' | 'impact';+ type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'p99_duration' | 'last_seen' | 'impact';let endpoints = $state<EndpointStats[]>([]);let loading = $state(true);@@ -235,7 +236,7 @@{#if loading}<Table.Body><Table.Row>- <Table.Cell colspan={5} class="h-48">+ <Table.Cell colspan={6} class="h-48"><div class="flex justify-center items-center h-full"><LoadingCircle size="xlg" /></div>@@ -245,14 +246,14 @@{:else if error}<Table.Body><Table.Row>- <Table.Cell colspan={5} class="h-24 text-center text-red-500">+ <Table.Cell colspan={6} class="h-24 text-center text-red-500">{error}</Table.Cell></Table.Row></Table.Body>{:else if endpoints.length === 0}<Table.Body>- <TableEmptyState colspan={5} message="No endpoint data available for your search parameters" />+ <TableEmptyState colspan={6} message="No endpoint data available for your search parameters" /></Table.Body>{:else}<Table.Header>@@ -289,6 +290,15 @@onSort={(field) => handleSort(field as SortField)}class="w-[100px]"/>+ <TracewayTableHeader+ label="Awful"+ tooltip="99th percentile - slowest 1% of requests"+ sortField="p99_duration"+ currentSortField={orderBy}+ {sortDirection}+ onSort={(field) => handleSort(field as SortField)}+ class="w-[100px]"+ /><TracewayTableHeaderlabel="Impact"tooltip="Priority based on traffic × response time variance"@@ -319,6 +329,9 @@<Table.Cell class="font-mono text-sm tabular-nums">{formatDuration(endpoint.p95Duration)}</Table.Cell>+ <Table.Cell class="font-mono text-sm tabular-nums">+ {formatDuration(endpoint.p99Duration)}+ </Table.Cell><Table.Cell class="text-right"><ImpactBadge score={endpoint.impact} /></Table.Cell>