@@ -109,11 +109,9 @@ const (
109109
110110// MonitorPoolOptions contains pool options as formatted in pool events
111111type MonitorPoolOptions struct {
112- MaxPoolSize uint64 `json:"maxPoolSize"`
113- MinPoolSize uint64 `json:"minPoolSize"`
114- WaitQueueTimeoutMS uint64 `json:"maxIdleTimeMS"`
115- RequestID int32 `json:"requestId"`
116- RemainingTime time.Duration `json:"remainingTime"`
112+ MaxPoolSize uint64 `json:"maxPoolSize"`
113+ MinPoolSize uint64 `json:"minPoolSize"`
114+ WaitQueueTimeoutMS uint64 `json:"maxIdleTimeMS"`
117115}
118116
119117// PoolEvent contains all information summarizing a pool event
@@ -126,9 +124,11 @@ type PoolEvent struct {
126124 Reason string `json:"reason"`
127125 // ServiceID is only set if the Type is PoolCleared and the server is deployed behind a load balancer. This field
128126 // can be used to distinguish between individual servers in a load balanced deployment.
129- ServiceID * primitive.ObjectID `json:"serviceId"`
130- Interruption bool `json:"interruptInUseConnections"`
131- Error error `json:"error"`
127+ ServiceID * primitive.ObjectID `json:"serviceId"`
128+ Interruption bool `json:"interruptInUseConnections"`
129+ Error error `json:"error"`
130+ RequestID int32 `json:"requestId"`
131+ RemainingTime time.Duration `json:"remainingTime"`
132132}
133133
134134// PoolMonitor is a function that allows the user to gain access to events occurring in the pool
0 commit comments