Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ttfb recording to only happen on success #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

3 participants