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.
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.