-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds sunset handler specification
Signed-off-by: Vincent Biret <[email protected]>
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Sunset Handler | ||
|
||
## Objectives | ||
|
||
Let application operation teams know that a given operation depends on an API which is slated for removal so they can proactively update the application before a breakage occurs. | ||
|
||
## Requirements | ||
|
||
- MUST provide an option to disable the behaviour for a given request with a settable default for all requests. | ||
- Additional observability requirements in [Observability](../Observability.md) | ||
- MUST create an event under the span (see Observability) whenever an [HTTP sunset header](https://datatracker.ietf.org/doc/html/rfc8594) is encountered in the response. | ||
- The additional event MUST contain the sunset date value provided by the header as an attribute. | ||
- The span and event MUST NOT contain the URI since parent spans already offer that tag/attribute and it could contain sensitive information. |