Sources

MB Maarten Balliauw
Blog

1stories
Oct 22latest
ASP.NET Core
Server time in DevTools
MBMaarten Balliauw Maarten Balliauw Oct 22

Server-Timing Headers in ASP.NET Core: Backend Metrics in Browser DevTools

Maarten Balliauw shows how to add a Server-Timing response header in ASP.NET Core so database and external API timings appear in browser DevTools next to the network timings. The post builds a small middleware, a measurement feature that endpoints can use, and ways to reuse OpenTelemetry Activity data. It also covers gating the header so internal timings are not exposed to every caller.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message