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 has been 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.
@hacdias as a PoC, we could give it a try by exposing a single value (e.g. one passet to i.getMetric here to test things end-to-end.
@willscott@aschmahmann
FYI I am adding more meaningful metrics and tracing spans in ipfs/boxo#245, we might be able to leverage ipfsBackendWithMetrics for exposing timing details per IPFSBackend api call via Server-Timing header.
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/gateway
could add own metrics and/or we could make this part of Gateway specThe text was updated successfully, but these errors were encountered: