Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion apps/api/src/latency-analytics/latency-analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,24 @@ export class LatencyAnalyticsService extends MultiConnectionPoller implements On
this.logger.debug(`Saved latency histogram for ${ctx.connectionName}`);
}
} catch (error) {
this.logger.error(`Error capturing latency histogram for ${ctx.connectionName}: ${error instanceof Error ? error.message : 'Unknown error'}`);

const msg = error instanceof Error ? error.message : String(error);

if (this.runtimeCapabilityTracker.recordFailure(
ctx.connectionId,
'canLatency',
error instanceof Error ? error : String(error)
)) {
this.logger.warn(
`Disabled latency histogram polling for ${ctx.connectionName} after repeated failures`
);
} else {
this.logger.error(
`Error capturing latency histogram for ${ctx.connectionName}: ${msg}`
);
}


}

// Store system-level latency events
Expand Down
Loading