Sentry-php: GuzzleHttp 7 support

Created on 3 Aug 2020  路  2Comments  路  Source: getsentry/sentry-php

Background: I'm using sentry/sentry-laravel (1.8.0) in my project as well as guzzlehttp/guzzle.

Problem: I would like to upgrade to Guzzle 7, but unfortunately sentry/sdk blocks this due to its dependency on php-http/guzzle6-adapter (which requires guzzlehttp/guzzle ^6.0).

Is there any chance to resolve this blockage?

Blocked Improvement

Most helpful comment

So. Finally we've updated our sentry/sdk package to no longer use Guzzle (any version) and thus you can install sentry/sentry or the Laravel integration without any changes or workarounds.

All 2 comments

I've posted a workaround for this earlier today: https://github.com/getsentry/sentry-laravel/issues/360#issuecomment-667851533.


For anyone not using Laravel these composer.json changes should work for you until there is a GuzzleHttp 7 compatible HTTPlug client implementation:

{
    "require": {
        "sentry/sentry": "^2.4",
        "http-interop/http-factory-guzzle": "^1.0",
        "php-http/curl-client": "^2.0",
        "guzzlehttp/guzzle": "^7.0"
    },
    "replace": {
        "sentry/sdk": "*"
    }
}

So. Finally we've updated our sentry/sdk package to no longer use Guzzle (any version) and thus you can install sentry/sentry or the Laravel integration without any changes or workarounds.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bojanpejic picture bojanpejic  路  3Comments

realtebo picture realtebo  路  5Comments

iluuu1994 picture iluuu1994  路  3Comments

parichayawalia picture parichayawalia  路  3Comments

Nix-id picture Nix-id  路  5Comments