Skip to content

fix(apm): Use Performance API for timings when available - #2492

Merged
rhcarvalho merged 2 commits into
masterfrom
rhcarvalho/apm-initial-time-fallback
Mar 12, 2020
Merged

fix(apm): Use Performance API for timings when available#2492
rhcarvalho merged 2 commits into
masterfrom
rhcarvalho/apm-initial-time-fallback

Conversation

@rhcarvalho

Copy link
Copy Markdown
Contributor

Instead of downgrading to use the dumb performanceFallback, in the
absence of a timeOrigin we can use INITIAL_TIME.

This should give better timings in Safari Web Workers.

@rhcarvalho
rhcarvalho requested a review from HazAT March 12, 2020 10:07
@rhcarvalho
rhcarvalho requested a review from kamilogorek as a code owner March 12, 2020 10:07
Comment thread packages/utils/src/misc.ts Outdated
Instead of downgrading to use the dumb performanceFallback, in the
absence of a timeOrigin we can use INITIAL_TIME.

This should give better timings in Safari Web Workers.
@rhcarvalho
rhcarvalho force-pushed the rhcarvalho/apm-initial-time-fallback branch from 686ac79 to 01a4402 Compare March 12, 2020 10:28
@rhcarvalho
rhcarvalho requested a review from HazAT March 12, 2020 10:29
@getsentry-bot

getsentry-bot commented Mar 12, 2020

Copy link
Copy Markdown
Contributor
Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 16.8838 kB) (ES6: 15.9229 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against c2e33ca

@HazAT HazAT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changelog please :)

@rhcarvalho

Copy link
Copy Markdown
Contributor Author

Changelog please :)

Have it locally, will wait to see a green from CI to avoid restarting the dance. (and prob. ignore browserstack)

@rhcarvalho

Copy link
Copy Markdown
Contributor Author

@rhcarvalho
rhcarvalho merged commit ef879bf into master Mar 12, 2020
@rhcarvalho
rhcarvalho deleted the rhcarvalho/apm-initial-time-fallback branch March 12, 2020 11:13
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