diff options
| author | bndw <ben@bdw.to> | 2026-02-14 22:11:08 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 22:11:08 -0800 |
| commit | bff984727e240dfc29533381d60a2127d833c10a (patch) | |
| tree | 369c75e67682a126e58fa27b4e4cdcedba2bf188 /api/nostr/v1/nostrv1connect | |
| parent | a98e6b9f844b980d27097be68886ec9faa6d90e8 (diff) | |
feat: track WebSocket requests in metrics
Add request tracking for EVENT and REQ messages to match gRPC behavior.
Dashboard now shows total/success/error counts for all requests.
- Add RecordRequest to MetricsRecorder interface
- Track timing and status in handleEvent and handleReq
- Record metrics with status: ok, error, unauthenticated, rate_limited
- Measure request duration for performance monitoring
WebSocket is the primary interface, so tracking these requests is critical
for understanding relay usage and performance.
Diffstat (limited to 'api/nostr/v1/nostrv1connect')
0 files changed, 0 insertions, 0 deletions
