You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ObserveInFlightEventsAsync observes the in_flight_events metric.
154
+
//
154
155
// Note that this function is not goroutine-safe;
155
156
// we don't lock the map deliberately for the performance reason and we assume the queue (i.e., the caller) takes lock before updating the in-flight events.
// Only flush the metric to the channel if the interval is reached.
160
161
// The values are flushed to Prometheus in the run() function, which runs once the interval time.
161
162
// Note: we implement this flushing here, not in FlushMetrics, because, if we did so, we would need to implement a lock for the map, which we want to avoid.
0 commit comments