-
-
Notifications
You must be signed in to change notification settings - Fork 55
Question/Suggestion: when/how to get WebGL working #516
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
Comments
We want to look into WebGL in the next 2 or 3 months. We had some initial experimentation already: #329 |
Just an interim update on my workaround: the BeforeSend hook can be used to intercept the SentryEvent on WebGL, but when I try to re-use the JSON writer logic I get a compilation error. E.g. with this function as BeforeSend hook:
It looks fine in VS Code but Unity complains about |
Another update: I wasn't able to get access to Utf8JsonWriter so had to do it the hard way - serializing SentryEvent and Envelopes semi-manually using Newtonsoft. Of course, that meant some guesses to map property names to correct JSON version. I would have wished for some more support for pluggable clients/transport/serialization (or I failed to find the right one). But at least I can send errors from WebGL to Sentry now. |
Thanks for the updates! It's really highly appreciated. The problem with the |
I understand sentry-unity doesn't support WebGL, because of single-threading (?). But as our app run on many platforms, is there a way I can re-use most of the Sentry logic for building the events, but just do the actual sending myself with UnityWebRequest? Is there a way I could capture the event to be sent and handle it myself?
And are there any plans to make WebGL builds work with this plugin?
Thanks!
The text was updated successfully, but these errors were encountered: