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
This library provides support for Server-Timing header in Plug
applications by exposing Telemetry events as metrics in HTTP headers. This
allows developers to use their's browser DevTools to display server metrics in
readable way.
Installation
The package can be installed by adding plug_server_timing to your list of
dependencies in mix.exs:
You need to place this plug BEFOREPlug.Telemetry call as otherwise it
will not see it's events (before_send callbacks are called in reverse order
of declaration, so this one need to be added before Plug.Telemetry one.
Caveats
This will not respond with events that happened in separate processes, only
events that happened in the Plug process will be recorded.
WARNING
Current specification of Server-Timing do not provide a way to specify event
start time, which mean, that the data displayed in the DevTools isn't trace
report (like the content of the "regular" HTTP timings) but raw dump of the data
displayed as a bars. This can be a little bit confusing, but right now there is
nothing I can do about it.