Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Support Server-Timing header #69

@lidel

Description

@lidel

TODO

This feature may be useful enough to be promoted upstream:

  • support timing info from caboose support in feat: add Server-Timing headers #71.
  • add gateway-related timing here
  • evaluate usefullness
  • decision to move middleware to upstream boxo/gateway library

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:


Source: https://ma.ttias.be/server-timings-chrome-devtools/

How

TBD, there is a library at https://github.com/mitchellh/go-server-timing + slack thread

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.

on the surface level it sounds sensible,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions