Support for debug outgoing request from sentry sdk #561
-
| Hi everyone, I would need help for debug outgoing calls from the sdk. I thought I'd inject something like this: $stack = \GuzzleHttp\HandlerStack::create();
        $stack->push(
            \GuzzleHttp\Middleware::log(
                with(new \Monolog\Logger('guzzle-log'))->pushHandler(
                    new \Monolog\Handler\StreamHandler(storage_path('logs/guzzle-log.log'))
                ),
                new \GuzzleHttp\MessageFormatter(\GuzzleHttp\MessageFormatter::DEBUG)
            )
 );
$clientHttp = new \GuzzleHttp\Client(['handler' => $stack]);Do you have any suggestions or better solutions for me? | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
| Hey @illambo, we have the option to attach a logger to the SDK. We do this ourself in the  sentry-laravel/src/Sentry/Laravel/Console/TestCommand.php Lines 102 to 117 in 041a9df Maybe running the  | 
Beta Was this translation helpful? Give feedback.
-
| Hi, @stayallive sentry/sentry-laravel:2.12.1 -> 2.12.0 Do you have any idea if is there any new configuration that may impact this? | 
Beta Was this translation helpful? Give feedback.
Hey @illambo, we have the option to attach a logger to the SDK.
We do this ourself in the
php artisan sentry:testcommand:sentry-laravel/src/Sentry/Laravel/Console/TestCommand.php
Lines 102 to 117 in 041a9df
Maybe ru…