tech-by-design / polyglot-prime

Primary monorepo for TechBD polyglot bespoke code
https://tech-by-design.github.io/polyglot-prime/
GNU Affero General Public License v3.0
2 stars 22 forks source link

Integrate reportable interaction timing metrics in UI/UX #107

Closed shah closed 4 months ago

shah commented 4 months ago

Integrate high-resolution request/response timing into all web controllers. The timing information will be added to the response headers so that web clients can display the start time, end time, and duration of each request and so that we can automatically email or flag when response times go above X (configurable) milliseconds.

Example response headers:

{
    "X-Observability-Metric-Interaction-Start-Time": "2024-07-09T12:34:56.789Z",
    "X-Observability-Metric-Interaction-Finish-Time": "2024-07-09T12:34:56.812Z",
    "X-Observability-Metric-Interaction-Duration-Millisecs": "0",
    "X-Observability-Metric-Interaction-Duration-Nanosecs": "676117"
}
shah commented 4 months ago

Initial version is complete, the UI needs to be improved in the future. For now, to show the server response and page generation times you hover over the notification bell icon in the top right corner of the app:

image