Though it is very basic or I suppose to have this working straight but after spending hours am looking for community experts insight/support.
Have to add monitoring of all outgoing requests from Magento Commerce 2.4.3 to any external services and all our platform services uses only GuzzleHttpClient
, so went through plugin and then preference way of adding the monitoring activities from [Company][Monitoring]MFHTTPGuzzleClient
which overwrites or adds updates on top of parent GuzzleHttpClient::request
method, the request is not falling to local namespace implementation but to vendor composer Guzzle module only.
Also tried adding ps-4
file dependency rewrite"GuzzleHttp\Client": "app/code/[Company]/[Monitoring]/MF/HTTP/GuzzleClient"
in this case also I am not able to get it to load the local implementation.
Looking for help here, any help is greatly appreciated.