authzed / spicedb

Open Source, Google Zanzibar-inspired permissions database to enable fine-grained authorization for customer applications
https://authzed.com/docs
Apache License 2.0
4.72k stars 251 forks source link

Improve request-id propagation #1845

Closed vroldanbet closed 3 months ago

vroldanbet commented 3 months ago

SpiceDB supports a custom request-id header clients can use to trace requests. It's convenient, for example, when troubleshooting certain requests using zed permission check --request-id <my-request-id>.

Unfortunately request-id wasn't being properly propagated to:

These issues are fixed in this PR, making it possible to filter all the log entries of a request by a custom request-id, included those that are part emitted as part of SpiceDB's dispatch mechanism.