Skip to content

Conversation

@hannahhoward
Copy link
Contributor

Goals

Since we're trying to seperate our time to first successful byte from time to response in our metrics, we should only record TTFB when the response is a success

Implementation

Move TTFB recording to after the check for a failure

@hannahhoward hannahhoward requested a review from guanzo October 21, 2023 01:59
@guanzo
Copy link
Collaborator

guanzo commented Oct 24, 2023

Can you fix conflicts

@AmeanAsad
Copy link
Contributor

@hannahhoward since this is basically a one line change, I added this change to another PR here: #25. cc @guanzo

as a side note, @hannahhoward you seem to have a js formatter that is different from the default one Eric and I use on this repo. I think we should agree on some prettier / eslint setup for all our our JS repos. The formatters changing the code makes it inconsistent and also makes PRs hard to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants