-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
AGS has started returning sunset headers on deprecated operations.
We already have a tracing infrastructure thanks to Open Telemetry and create spans that are enriched by each middleware hander.
Implementing a handler that warns on sunset would allow admins and SecOps to provide feedback to their development teams so they can update an application before it gets impacted by APIs retirement.
We could had a new handler that would:
- start a new span (parent span from the context
- add a boolean attribute about whether the operation returned a sunset header or not.
- set the span status to error when a sunset header is present and the represented date is less that a year from now (default value), with the description being the an explicit message saying this API will be inoperative at date X
- add date attribute to the span when present
This handler can be configured with its dedicated option, the option provide the following fields:
- enabled (boolean), default true
- sunsetAsErrorDelay (timespan), default one year
We don't need to log the URL or the HTTP verb as attributes as this is already done by the client/other handlers.
darrelmiller, andrueastman and Ndiritu
Metadata
Metadata
Assignees
Labels
No labels