-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove sdk #246
Comments
The {
"require": {
"guzzlehttp/psr7": "^1.6",
"php-http/guzzle6-adapter": "^2.0",
"sentry/sentry": "^2.1",
"sentry/sentry-symfony": "^3.1"
},
"replace": {
"sentry/sdk": "*"
}
} This is how I do it in my projects to use Guzzle. |
Hello! @Jean85 if i understand, your point is that you can quickstart with sentry in your symfony project with just In that case i agree with you, stick to the Though
could be better documented at least in readme.md as it is not as straightforward as it might look like, there is mention about custom transports, but not about how to replace default sentry/sdk. |
Sure. PR are welcome to fix that, then. |
BTW I would like to point out that |
I hope that in the future this bundle will require symfony/http-client (unless we can remove any hard dependency completely, that is IMHO the best solution). At least, it's more consistent with the Symfony ecosytem |
Maybe a Transport that uses symfony/http-client instead of httplug could be bundled in the sentry-symfony bundle? Could be optional, but it would replace a lot of dependencies... |
Using |
That's why I wrote it could be optional. I don't say it should be required hard, but as a supported dependency. If symfony/http-client is installed, a special transport could be used. |
That's already how HTTPlug works, which is the underlying lib used for HTTP transport in |
Tried it with symfony/http-client (HttplugClient) and nyholm/psr7 last night, and it didn't work. Wasn't able to find the cause, will try again soon. |
Same here. Do I need to require something else? |
Self-reply: I managed to get it working by requiring |
Wow, that's totally unexpected. Shouldn't it be the other way around? |
That's what's happening for the base SDK, you install the metapackage and you get |
Other alternative is to not use the bundle and do the setup manually like so @garak: https://github.com/B-Galati/monolog-sentry-handler/blob/master/doc/guide-symfony.md |
I created an alternate metapackage: https://packagist.org/packages/pugx/sentry-sdk |
Sure! |
Solved in #327 |
@Jean85 are you sure it works properly? I have lib with dependency |
@gkawka if you have a constraint that forbids you from updating a package, that's something that we can't fix on our side. Please open a separate issue if you want something else addressed. BTW now |
I think that #190 should be reverted.
It's restricting choices of http client, defeating the purpose of PSR-18.
The benefit of reducing a supposed "complex" installation is not justified
The text was updated successfully, but these errors were encountered: