File tree 1 file changed +1
-9
lines changed 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ private function handleCommandMonitoringEvent($event): void
120
120
'name ' => self ::getEventName ($ event ),
121
121
'observedAt ' => microtime (true ),
122
122
'commandName ' => $ event ->getCommandName (),
123
- 'connectionId ' => self :: getConnectionId ( $ event ),
123
+ 'connectionId ' => $ event-> getServerConnectionId ( ),
124
124
'requestId ' => $ event ->getRequestId (),
125
125
'operationId ' => $ event ->getOperationId (),
126
126
];
@@ -144,14 +144,6 @@ private function handleCommandMonitoringEvent($event): void
144
144
$ this ->eventList [] = $ log ;
145
145
}
146
146
147
- /** @param CommandStartedEvent|CommandSucceededEvent|CommandFailedEvent $event */
148
- private static function getConnectionId ($ event ): string
149
- {
150
- $ server = $ event ->getServer ();
151
-
152
- return sprintf ('%s:%d ' , $ server ->getHost (), $ server ->getPort ());
153
- }
154
-
155
147
private static function getEventName (object $ event ): string
156
148
{
157
149
static $ eventNamesByClass = null ;
You can’t perform that action at this time.
0 commit comments