https://github.com/amtunlimited/average-response
What is the average HTTP response?
https://github.com/amtunlimited/average-response
Last synced: 9 months ago
JSON representation
What is the average HTTP response?
- Host: GitHub
- URL: https://github.com/amtunlimited/average-response
- Owner: amtunlimited
- Created: 2020-07-18T14:52:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-04T13:58:48.000Z (over 4 years ago)
- Last Synced: 2024-11-04T01:30:37.166Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://aarontag.dev/average-response
- Size: 4.88 KB
- Stars: 25
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - average-response
README
# The Average HTTP Response
> You know when someone makes a really good pun and everyone just sighs at it
> in a combination of frustration and approval? This is the sort of code that
> gets that reaction.
>
> --Some Bloke
As calculated from the most recent daily batch of
[telemetry data](https://telemetry.mozilla.org/) from the Firefox nightly build.
# But y tho?
I was looking over some logs, trying to see if a new feature I had made had
resulted in an increase of errors/non-200 responses as a quick and dirty "Did
I break something" metric. I decided to throw the data in a spreadsheet and do
stats at it before trying to do anything Python-y or whatever, but forgot to
turn the error codes into strings, so they were treated as just values, meaning
I got back things like averages and the like. I had just learn that Mozilla puts
out public telemetry data, so I threw that into a spreadsheet, texted a friend
the entire story, and he responded
> Wow! That is AGGRESSIVELY useless!
At that point I knew I must tell the world...
# FAQ
## Could this have been server-side rendered?
Yes, but that would mean finding a place to host it or using Github Actions
and I felt like seeing how fast I could make the MVP. Maybe later though...
## Does this have any useful value in?
Nope.
## Are you sure?
Yep.
## But it feels like it should tell me something...
That's what "*agressively* useless" means. You sit there and stare at it hoping
it'll get embarrassed and tell you something, but the truth is it's just got
nothing to say...
# Acknowledgement
Shoutout to the Mozilla Foundation for making some of their telemetry data
public, without which the world would have been spared this useless fact.