sentry-unity
sentry-unity copied to clipboard
Give access to SentryUnityOptions.Integrations to allow for removing default integrations and allow overriding them
I don't want to use Application.logMessageReceivedThreaded or Application.logMessageReceived for exception reporting but instead use ILogHandler because it usually gives me access to a context UnityEngine.Object which I can collect additional data from and add as attachment or extra.
Currently solving it by using reflection but I feel default integrations should be editable and even the classes themselves should be overridable.
Interesting idea! We've already been discussing adding more Unity-specific context data to the events and this might be a way forward. Thanks for your input.
This is very relevant and we will take into consideration. Is there a need for a hook here (a callback that gives you the Event or Breadcrumb together with the Unity object? Or do you see something where we can already extract generally data from UnityEngine.Object and add to event/crumbs?
@bruno-garcia I just need to be able to make my own integrations and remove default ones, it seems like there is already enough flexibility in the sdk to do what I want. I currently remove the integration with reflection:

Then have this fire off exceptions and breadcrumbs:
