Skip to content

Commit 9357dcc

Browse files
authored
Use HandlerStack::create() in Guzzle tracing middleware snippet (#13033)
1 parent 283cb04 commit 9357dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/platforms/php/common/tracing/instrumentation/requests-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For detailed information about which data can be set, see the [Requests Module d
1818
If you're using [Guzzle](https://github.com/guzzle/guzzle), you can inject Sentry's `GuzzleTracingMiddleware` into your `HandlerStack`.
1919

2020
```php
21-
$stack = new \GuzzleHttp\HandlerStack();
21+
$stack = \GuzzleHttp\HandlerStack::create();
2222
$stack->setHandler(new \GuzzleHttp\Handler\CurlHandler());
2323
$stack->push(\Sentry\Tracing\GuzzleTracingMiddleware::trace());
2424

0 commit comments

Comments
 (0)