Skip to content

Conversation

@dashed
Copy link
Member

@dashed dashed commented May 7, 2021

Closes #3507

Since the JS SDK generates its own timeOrigin, the TTFB metric as measured by the web-vitals library may not match what's visualized from the captured span data. Thus, it's preferred that we generate TTFB from the span data.

This also implicitly addresses negative TTFB values that could be generated from Firefox browsers.

  • For TTFB, we measure from the beginning of the transaction to the start of the response.

  • For TTFB Request Time, we measure from beginning of the request to the beginning of the response.

Screen Shot 2021-05-05 at 2 48 41 PM

@dashed dashed requested a review from a team May 7, 2021 20:53
@dashed dashed self-assigned this May 7, 2021
@dashed dashed requested a review from kamilogorek as a code owner May 7, 2021 20:53
@dashed dashed requested a review from k-fish May 7, 2021 20:53
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.64 KB (0%)
@sentry/browser - Webpack 21.52 KB (0%)
@sentry/react - Webpack 21.55 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28 KB (-0.5% 🔽)

Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is low-risk enough that we can try out 👍

@dashed dashed merged commit e5c7ef9 into master May 10, 2021
@dashed dashed deleted the fix-ttfb branch May 10, 2021 16:36
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.

Negative TTFB measurements are recorded

3 participants