We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945c7bb commit 5beb69bCopy full SHA for 5beb69b
src/metrics/index.ts
@@ -304,6 +304,10 @@ export const metrics = new Metrics(() => ({
304
help: 'The number of cache warmers running',
305
labelNames: ['isBatched'] as const,
306
}),
307
+ wsConnectionAttempt: new client.Counter({
308
+ name: 'ws_connection_attempt',
309
+ help: 'The number of open connection attempts',
310
+ }),
311
wsConnectionActive: new client.Gauge({
312
name: 'ws_connection_active',
313
help: 'The number of active connections',
src/transports/websocket.ts
@@ -244,6 +244,7 @@ export class WebSocketTransport<
244
)
245
246
// Attempt to establish the connection
247
+ metrics.get('wsConnectionAttempt').inc()
248
try {
249
await timeoutPromise(
250
'WS Open Handler',
0 commit comments