Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to know status of the event #886

Closed
@JulienChavee

Description

@JulienChavee

I'm trying to migrate from V1 to V2.

In V1 of this SDK, we were able to know if an exception failed to be sent via some methods or by checking if eventID is null.

In V2, it seems impossible to know if the exception was correctly sent to Sentry.

$eventID = \Sentry\captureException($myException);

This code will always give me an EventID even if the exception wasn't correctly sent.

I checked a bit in the code and I saw that in Transport/HttpTransport::send() you are doing this :

 $promise->wait(false);

Passing false to this function means that you don't want to check the status the request : "bool $unwrap Whether to return resolved value / throw reason or not"

If I change this value to "true", I can now catch error when the exception wasn't correctly sent (as the method is throwing an Exception).

Now, I would like to know if it is possible (out of the box) to check if the exception is correctly sent?
And furthermore, is it intended to not warn the user that the exception isn't correctly sent?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions