nativelink
nativelink copied to clipboard
Add OriginContext to track data across modules
Adds OriginContext that can have data set on it about the origin and read out in any module at any time. This is designed to allow us to track "requests" (usually network requests) as it traverses through the system.
The most immediate use is to track what hashing algorithm was requested for VerifyStore and verify the data using it.
In the future we'll likely use this for other things, like tracking a "user" and emit what resources that user used over time and emit it to another system based on a config.