bugsnag / bugsnag-unity

Automatic error reporting for Unity games
https://docs.bugsnag.com/platforms/unity
MIT License
89 stars 31 forks source link

PLAT-12127 add traceid to events #801

Closed richardelms closed 2 months ago

richardelms commented 3 months ago

NOTE

This PR is part of work connected to the Unity Notifier, the sister PR can be found here: https://github.com/bugsnag/bugsnag-unity-performance/pull/112

Please do not review this PR without also reviewing the other

Goal

When a C# layer error occurs, get the current span context from the Unity Performance SDK and include it in the event report.

Changeset

Added PerformanceHelper class to get information from the Performance SDK if it is present.

Testing

Manually tested E2E Tests will be added in a later task

kstenerud commented 3 months ago

I really think that we should version these kinds of cross-library interfaces so that we don't accidentally paint ourselves into a corner...