bugsnag / bugsnag-unity-performance

Monitor the start-up, scene loading and network requests of your Unity game and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides/unity
MIT License
1 stars 2 forks source link

Refactor trace disk-storage to include headers #32

Closed kstenerud closed 1 year ago

kstenerud commented 1 year ago

Goal

The Bugsnag-Span-Sampling header cannot be regenerated after loading a trace payload from disk because the information is already encoded into JSON, and decoding it would be expensive.

Design

Modify the on-disk storage to also include headers, so that we can just load them from disk.

Testing

Added new unit tests.