getMetricConnectionCountCallback returns the metric callback for connection count changes (UpDownCounter).
()
| 289 | |
| 290 | // getMetricConnectionCountCallback returns the metric callback for connection count changes (UpDownCounter). |
| 291 | func getMetricConnectionCountCallback() func(ctx context.Context, delta int, cn *Conn, state string, isPubSub bool) { |
| 292 | metricCallbackMu.RLock() |
| 293 | cb := metricConnectionCountCallback |
| 294 | metricCallbackMu.RUnlock() |
| 295 | return cb |
| 296 | } |
| 297 | |
| 298 | // getMetricPendingRequestsCallback returns the metric callback for pending requests changes (UpDownCounter). |
| 299 | func getMetricPendingRequestsCallback() func(ctx context.Context, delta int, cn *Conn, poolName string) { |
no outgoing calls
no test coverage detected