-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
HttpTransport example does not work #787
Comments
As a workaround, you could use the Hub with no default integrations, and send the events from there. IT should result in a smaller code example that works. |
Can't get it to work also, the example is broken and/or incomplete. Seems like we still have to use the old Raven |
This issue could be related to the issues we're facing with async transport... |
I don't think so, I believe that as written by @cosminardeleanu when you set your transport then you lose all the automation done to set the plugins to the HTTP client needed to authenticate with the server. It's a pity and we can think about fixing it, but for now it's this way |
Just had the same issue, IMHO the spool transport is not usable right now from a DX perspective. |
My workaround for now is to use reflection:
|
@Jean85 would it acceptable to add a |
I'm not sure on how we should go with that but yes, we were already discussing something like that with @ste93cry. A PR is more than welcome, so we can discuss it over the code. |
getsentry#787 This should ease the process of registering a custom transport.
@ste93cry @Jean85 if someone can review #855 and getsentry/sentry-docs#1122 🙇♂️ |
getsentry#787 This should ease the process of registering a custom transport.
getsentry#787 This should ease the process of registering a custom transport.
Closing as the official documentation has been fixed |
Your example from https://docs.sentry.io/platforms/php/#httptransport does not work, or is incomplete.
Used version 2.0.1.
Please add a working version and/or fix the code.
Context: I am trying to send messages, via queues, so i store the
Event
and dispatch it later, by using the HttpTransport.This example does not work.
Looking deep in the sentry code, i have seen that the http transport model, is being filled with various plugins, that actually makes the guzzle6 adapter to work:
new BaseUriPlugin($uriFactory->createUri($options->getDsn()))
andnew AuthenticationPlugin(new SentryAuthentication($options, $sdkIdentifier, $sdkVersion));
.The only working around was to use the
PluginClient
and copy/paste the logic fromClientBuilder
,private function createHttpClientInstance(): PluginClient
.The text was updated successfully, but these errors were encountered: