File tree Expand file tree Collapse file tree
apps/api/src/latency-analytics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,24 @@ export class LatencyAnalyticsService extends MultiConnectionPoller implements On
8181 this . logger . debug ( `Saved latency histogram for ${ ctx . connectionName } ` ) ;
8282 }
8383 } catch ( error ) {
84- this . logger . error ( `Error capturing latency histogram for ${ ctx . connectionName } : ${ error instanceof Error ? error . message : 'Unknown error' } ` ) ;
84+
85+ const msg = error instanceof Error ? error . message : String ( error ) ;
86+
87+ if ( this . runtimeCapabilityTracker . recordFailure (
88+ ctx . connectionId ,
89+ 'canLatency' ,
90+ error instanceof Error ? error : String ( error )
91+ ) ) {
92+ this . logger . warn (
93+ `Disabled latency histogram polling for ${ ctx . connectionName } after repeated failures`
94+ ) ;
95+ } else {
96+ this . logger . error (
97+ `Error capturing latency histogram for ${ ctx . connectionName } : ${ msg } `
98+ ) ;
99+ }
100+
101+
85102 }
86103
87104 // Store system-level latency events
You can’t perform that action at this time.
0 commit comments