Skip to content

Conversation

@lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented May 21, 2021

Just a bunch of random housekeeping.

  • No longer return project root directory from instrumentServer since it's not yet defined at that point.
  • No longer store transaction on res, since our new use of domains means that getActiveTransaction is safe. As a result, change NextResponse from an interface to a type which is purely an alias.
  • Store a pointer to the live Server instance directly on the top scope rather than in an object, and get rid of the other stuff being stored in that object (closure) since it can all be gotten off of the aforementioned Server instance.
  • Fix/expand/tweak various docstrings and comments.
  • Improve log message when tracing an outgoing HTTP request.

@github-actions
Copy link
Contributor

github-actions bot commented May 21, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.76 KB (0%)
@sentry/browser - Webpack 21.98 KB (0%)
@sentry/react - Webpack 22.01 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.16 KB (+0.01% 🔺)

Copy link
Contributor

@iker-barriocanal iker-barriocanal left a comment

Choose a reason for hiding this comment

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

LGTM

@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-parameterize-transaction-name branch from 40bab14 to f960139 Compare May 22, 2021 03:28
@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-serverside-performance-cleanup branch from d882819 to 1bd25dc Compare May 22, 2021 03:35
Base automatically changed from kmclb-nextjs-parameterize-transaction-name to kmclb-next-js-performance May 25, 2021 13:34
@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-serverside-performance-cleanup branch from 1bd25dc to e73c241 Compare May 25, 2021 13:45
@lobsterkatie lobsterkatie marked this pull request as ready for review May 25, 2021 14:01
@lobsterkatie lobsterkatie requested a review from kamilogorek as a code owner May 25, 2021 14:01
@lobsterkatie lobsterkatie merged commit 596f83a into kmclb-next-js-performance May 25, 2021
@lobsterkatie lobsterkatie deleted the kmclb-nextjs-serverside-performance-cleanup branch May 25, 2021 14:23
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