diff options
| author | bndw <ben@bdw.to> | 2026-02-14 12:29:01 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 12:29:01 -0800 |
| commit | c33395cee66770c4d88a47537c0ed821f6585f62 (patch) | |
| tree | e7f61e5881089f2f10bd06d5828cd7c58b2bc98e /internal/ratelimit/ratelimit_test.go | |
| parent | eb666af39feed4be9c8c1354cf52d0ea38ab5d36 (diff) | |
fix: properly chain gRPC interceptors and fix dashboard uptime
Two critical fixes for metrics:
1. Fix interceptor chaining
- Changed from mixed grpc.UnaryInterceptor/ChainUnaryInterceptor to
proper chaining with grpc.ChainUnaryInterceptor
- Metrics interceptor now runs first (as intended)
- All interceptors properly chained in order: metrics → auth → ratelimit
- This fixes metrics not being recorded for any requests
2. Fix dashboard uptime calculation
- Changed from page load time to process_start_time_seconds metric
- Uptime now persists correctly across page refreshes
- Uses Prometheus standard process_start_time_seconds gauge
Before: Metrics showed 0 for all requests, uptime reset on refresh
After: Metrics properly record all gRPC requests, uptime shows actual relay uptime
Diffstat (limited to 'internal/ratelimit/ratelimit_test.go')
0 files changed, 0 insertions, 0 deletions
