GetMetricConnectionCreateTimeCallback returns the metric callback for connection creation time.
()
| 224 | |
| 225 | // GetMetricConnectionCreateTimeCallback returns the metric callback for connection creation time. |
| 226 | func GetMetricConnectionCreateTimeCallback() func(ctx context.Context, duration time.Duration, cn *Conn) { |
| 227 | metricCallbackMu.RLock() |
| 228 | cb := metricConnectionCreateTimeCallback |
| 229 | metricCallbackMu.RUnlock() |
| 230 | return cb |
| 231 | } |
| 232 | |
| 233 | // GetMetricConnectionRelaxedTimeoutCallback returns the metric callback for connection relaxed timeout changes. |
| 234 | // This is used by maintnotifications to record relaxed timeout metrics. |