Closed
Bug 1431200
Opened 8 years ago
Closed 6 years ago
Switch to using Server-Timing headers for timings
Categories
(Tecken :: General, task)
Tecken
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: peterbe, Unassigned)
Details
Currently, if you pass a extra header called "DEBUG" (case insensitive) with a value like '1' or 'true' or 'yes', then in the response there's a header in the response called "Debug-Time" which is a floating point string of the number of seconds. E.g:
▶ curl -v -H 'debug: true' https://symbols.mozilla.org/AccessibleMarshal.pdb/43F1FA83E7FC49808A294A955F3A0C7B2/AccessibleMarshal.sym
...
< Debug-Time: 0.001703023910522461
...
This is available both on symbol download and on symbolication (v4).
The issue is that there's a slowly forming standard called "Server Timings" [0] which is a much better "format" for transmitting this information in the response.
In Chrome's DevTools there's already support for a UI to display these nicely [1].
In Firefox's DevTools it's underway [2,3]. I don't think this bug needs to depend on those other Firefox bugs because the data is easy to extract as a pure string in tools like tecken-loadtest.
Ultimately, the benefit is being able to see it in browser devtools and it's possible to have multiple values in there all in one string (e.g. S3 download time, Redis read time, etc.)
Also, this bug should require that the documentation is updated [4,5].
[0] https://w3c.github.io/server-timing/#
[1] https://twitter.com/paul_irish/status/829090506084749312
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1337684
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1403051
[4] http://tecken.readthedocs.io/en/latest/download.html#download-with-debug
[5] http://tecken.readthedocs.io/en/latest/symbolication.html#symbolication-with-debug
| Reporter | ||
Comment 1•8 years ago
|
||
Actually, the server-timing might be hard to open in any DevTools because the information is only really available on non-html response (e.g. JSON). But it'll still be useful to have it on a more standard naming convention with the added ability to pack multiple values into one overarching key.
| Reporter | ||
Comment 2•8 years ago
|
||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Comment 3•7 years ago
|
||
Moved back!
Status: RESOLVED → REOPENED
Component: Symbols → Tecken
Resolution: INCOMPLETE → ---
Comment 4•6 years ago
|
||
Moving to Tecken product.
Component: Tecken → General
Product: Socorro → Tecken
Comment 5•6 years ago
|
||
This seems interesting, but it's not a need I have, so I'm going to close it out.
Status: REOPENED → RESOLVED
Closed: 8 years ago → 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•