From f52c8438f6c47c5b57525e397533f395afccc9a0 Mon Sep 17 00:00:00 2001 From: titoko Date: Mon, 17 Oct 2022 11:42:30 +0200 Subject: [PATCH] fix(dataCollector): fix default index --- src/DataCollector/GuzzleHttpDataCollector.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/DataCollector/GuzzleHttpDataCollector.php b/src/DataCollector/GuzzleHttpDataCollector.php index 932b68a..d16fd90 100644 --- a/src/DataCollector/GuzzleHttpDataCollector.php +++ b/src/DataCollector/GuzzleHttpDataCollector.php @@ -66,7 +66,10 @@ public function getName() */ public function onGuzzleHttpCommand(AbstractGuzzleHttpEvent $event) { - $client = 'm6web_guzzlehttp_'.$event->getClientId(); + $client = 'm6web_guzzlehttp'; + if ($event->getClientId() !== 'default') { + $client .= '_'.$event->getClientId(); + } $request = $event->getRequest(); $response = $event->getResponse();