-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add header for skipping the blockcache (#152)
* feat: add header for skipping the blockcache * feat: add test config option to disable metrics * feat: Rainbow-No-Blockcache is only valid with 'true' * feat: add more cache skipping tests * refactor: move TracingAuthToken to Config * refactor: simplify handler build functions * test: default state without RAINBOW_TRACING_AUTH --------- Co-authored-by: Marcin Rataj <[email protected]>
- Loading branch information
1 parent
372bd4b
commit 8c8fce2
Showing
10 changed files
with
273 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
## `Authorization` | ||
|
||
Optional request header that guards per-request tracing features. | ||
Optional request header that guards per-request tracing and debugging features. | ||
|
||
See [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth) | ||
|
||
## `Traceparent` | ||
|
||
See [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth) | ||
|
||
## `Tracestate` | ||
|
||
See [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth) | ||
|
||
## Rainbow-No-Blockcache | ||
|
||
If the value is `true` the associated request will skip the local block cache and leverage a separate in-memory block cache for the request. | ||
|
||
This header is not respected unless the request has a valid `Authorization` header | ||
|
||
See [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.