You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 20, 2024. It is now read-only.
Middleware for injecting the server timing struct into the request Context and writing the Server-Timing header.
there is slight risk middleware will not be compatible with how we do subdomains, but that is tbd.
we can give it a try in bifrost-gateway and see how it goes.
TODO
This feature may be useful enough to be promoted upstream:
What and why
Ref. https://www.w3.org/TR/server-timing/
TLDR: we want to leverage UI in modern browsers to give more info about where Gateway request was spent:
How
TBD, there is a library at https://github.com/mitchellh/go-server-timing + slack thread
there is slight risk middleware will not be compatible with how we do subdomains, but that is tbd.
we can give it a try in bifrost-gateway and see how it goes.
on the surface level it sounds sensible,
boxo/gatewaycould add own metrics and/or we could make this part of Gateway spec