GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tracing): add long animation frame tracing by KevinL10 · Pull Request #12646 · getsentry/sentry-javascript

Conversation

@KevinL10

@KevinL10 KevinL10 commented Jun 25, 2024 •
edited by AbhiPrasad
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Adds an option to trace long animation frames as per #11719. This tracing feature is disabled by default.

Currently, this feature https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing is only supported by Chromium browsers.

Usage is opt-in:

Sentry.init({
  dsn: '__PUBLIC_DSN__',
  integrations: [
    Sentry.browserTracingIntegration({
      enableLongAnimationFrame: true,
    }),
  ],
  tracesSampleRate: 1,
});

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@KevinL10
feat(tracing): add long animation frame tracking
5ba8c9d
@KevinL10 KevinL10 changed the title feat(tracing): add long animation frame tracing. feat(tracing): add long animation frame tracing Jun 25, 2024
KevinL10 added 2 commits June 25, 2024 16:06
@KevinL10
add PerformanceScriptTiming definitions
a5e95d9
@KevinL10
cleanup
d4ff07d
@github-actions

github-actions Bot commented Jun 27, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser 22.29 KB (0%)
@sentry/browser (incl. Tracing) 33.63 KB (+0.58% 🔺)
@sentry/browser (incl. Tracing, Replay) 69.41 KB (+0.32% 🔺)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.74 KB (+0.36% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) 73.46 KB (+0.29% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) 86.12 KB (+0.28% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.97 KB (+0.27% 🔺)
@sentry/browser (incl. metrics) 26.58 KB (0%)
@sentry/browser (incl. Feedback) 38.97 KB (0%)
@sentry/browser (incl. sendFeedback) 26.92 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.53 KB (0%)
@sentry/react 25.04 KB (0%)
@sentry/react (incl. Tracing) 36.68 KB (+0.55% 🔺)
@sentry/vue 26.4 KB (0%)
@sentry/vue (incl. Tracing) 35.52 KB (+0.61% 🔺)
@sentry/svelte 22.43 KB (0%)
CDN Bundle 23.51 KB (0%)
CDN Bundle (incl. Tracing) 35.41 KB (+0.59% 🔺)
CDN Bundle (incl. Tracing, Replay) 69.52 KB (+0.31% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.72 KB (+0.29% 🔺)
CDN Bundle - uncompressed 69 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 104.75 KB (+0.71% 🔺)
CDN Bundle (incl. Tracing, Replay) - uncompressed 215.15 KB (+0.35% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 227.86 KB (+0.33% 🔺)
@sentry/nextjs (client) 36.56 KB (+0.54% 🔺)
@sentry/sveltekit (client) 34.29 KB (+0.59% 🔺)
@sentry/node 130.79 KB (0%)
@sentry/node - without tracing 91.88 KB (0%)
@sentry/aws-serverless 117.05 KB (0%)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KevinL10
KevinL10 force-pushed the kevinliu/feat/add-long-animation-frame branch from 2083357 to d4ff07d Compare July 5, 2024 18:06
KevinL10 added 2 commits July 5, 2024 14:06
@KevinL10
Merge branch 'develop' of https://github.com/getsentry/sentry-javascript
1a4bec7
 into kevinliu/feat/add-long-animation-frame
@KevinL10
add tests and cleanup
c187e01
@KevinL10
KevinL10 marked this pull request as ready for review July 5, 2024 20:46
@KevinL10
KevinL10 requested a review from AbhiPrasad July 5, 2024 20:49
@KevinL10
fix import order
cb38cbd
AbhiPrasad
AbhiPrasad suggested changes Jul 8, 2024
View reviewed changes

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Can you share a link/screenshot of an example trace with these spans?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KevinL10 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread packages/browser/src/tracing/browserTracingIntegration.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/browser-utils/src/metrics/browserMetrics.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@AbhiPrasad
AbhiPrasad requested review from a team, Lms24 and stephanie-anderson and removed request for a team July 8, 2024 13:35
KevinL10 added 4 commits July 8, 2024 14:32
@KevinL10
cleanup
4335bea
@KevinL10
send attributes conditionally
5b9ba4b
@KevinL10
move undefined check later
10091d8
@KevinL10
fix flakiness
66f8f7d
AbhiPrasad
AbhiPrasad reviewed Jul 8, 2024
View reviewed changes
Comment thread packages/browser-utils/src/metrics/browserMetrics.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/browser/src/tracing/browserTracingIntegration.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

KevinL10 added 2 commits July 8, 2024 16:30
@KevinL10
avoid entry.scripts[0] duplication
de91078
@KevinL10
fix enable loaf logic
e8fc143
AbhiPrasad
AbhiPrasad reviewed Jul 9, 2024
View reviewed changes

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We also need to test the scenarios where:

  1. enableLongAnimationFrame is true, but non-chromium browser
  2. enableLongAnimationFrame is false and enableLongTask is true

afterwards we are good to merge. Thanks for sticking with this!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KevinL10 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
KevinL10 added 2 commits July 9, 2024 14:19
@KevinL10
add additional loaf tests
5f3f61a
@KevinL10
add tests for both long task and loaf enabled
5d90e81
@KevinL10

KevinL10 commented Jul 9, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Example spans from the long-tasks-and-animation-frame-enabled test:
image

image
AbhiPrasad reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KevinL10
KevinL10 requested a review from AbhiPrasad July 9, 2024 19:05
AbhiPrasad
AbhiPrasad approved these changes Jul 9, 2024
View reviewed changes

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

You'll have to adjust https://github.com/getsentry/sentry-javascript/blob/develop/.size-limit.js - you can run yarn size-limit in the root after you run yarn build to see what to change.

I also updated #11719 with a tasklist of follow up items. Do you have the item to do these?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AbhiPrasad

AbhiPrasad commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

You can ignore Secret Scan as well!

Please make sure to Squash and Merge after the size-limit stuff is resolved.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KevinL10
bump size limit for cdn bundle
9f38f30
@KevinL10
KevinL10 enabled auto-merge (squash) July 9, 2024 21:46
@KevinL10
KevinL10 disabled auto-merge July 9, 2024 21:46
@AbhiPrasad AbhiPrasad mentioned this pull request Jul 10, 2024
Add support for Long animation frame timing API #11719
Closed
@KevinL10
KevinL10 merged commit 2f04224 into develop Jul 10, 2024
@KevinL10
KevinL10 deleted the kevinliu/feat/add-long-animation-frame branch July 10, 2024 13:55
@angeloreale angeloreale mentioned this pull request Aug 6, 2024
[Snyk] Upgrade @sentry/nextjs from 8.17.0 to 8.18.0 dupipcom/hypnos#18
Closed
@q1blue q1blue mentioned this pull request Aug 6, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.18.0 https-quantumblockchainai-atlassian-net/ossinsight#799
Open
@wkylin wkylin mentioned this pull request Aug 7, 2024
[Snyk] Upgrade @sentry/react from 8.15.0 to 8.18.0 wkylin/pro-react-admin#371
Merged
This was referenced Aug 7, 2024
[Snyk] Upgrade @sentry/nextjs from 8.17.0 to 8.18.0 dupipcom/hypnos#23
Closed
[Snyk] Upgrade @sentry/nextjs from 8.17.0 to 8.19.0 dupipcom/hypnos#29
Closed
This was referenced Aug 9, 2024
[Snyk] Upgrade @sentry/react from 7.118.0 to 8.19.0 Stanislav1975/win11React#4
Open
[Snyk] Upgrade @sentry/node from 6.17.4 to 8.19.0 Stanislav1975/shields#596
Open
@q1blue q1blue mentioned this pull request Aug 9, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.19.0 https-quantumblockchainai-atlassian-net/ossinsight#802
Open
@FengShangWuQi FengShangWuQi mentioned this pull request Aug 11, 2024
[Snyk] Upgrade @sentry/gatsby from 7.20.0 to 8.19.0 FengShangWuQi/fengshangwuqi.github.io#1914
Closed
@angeloreale angeloreale mentioned this pull request Aug 15, 2024
[Snyk] Upgrade @sentry/nextjs from 8.17.0 to 8.20.0 dupipcom/hypnos#30
Merged
@q1blue q1blue mentioned this pull request Aug 16, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.20.0 https-quantumblockchainai-atlassian-net/ossinsight#807
Open
@wkylin wkylin mentioned this pull request Aug 19, 2024
[Snyk] Upgrade @sentry/react from 8.18.0 to 8.20.0 wkylin/pro-react-admin#383
Closed
This was referenced Aug 22, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.21.0 https-quantumblockchainai-atlassian-net/ossinsight#814
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.22.0 https-quantumblockchainai-atlassian-net/ossinsight#816
Open
@FengShangWuQi FengShangWuQi mentioned this pull request Aug 25, 2024
[Snyk] Upgrade @sentry/gatsby from 7.20.0 to 8.22.0 FengShangWuQi/fengshangwuqi.github.io#1916
Closed
@q1blue q1blue mentioned this pull request Aug 27, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.23.0 https-quantumblockchainai-atlassian-net/ossinsight#820
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@stephanie-anderson stephanie-anderson Awaiting requested review from stephanie-anderson stephanie-anderson was automatically assigned from getsentry/team-javascript-sdks
@Lms24 Lms24 Awaiting requested review from Lms24 Lms24 was automatically assigned from getsentry/team-javascript-sdks
1 more reviewer
@AbhiPrasad AbhiPrasad AbhiPrasad approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@KevinL10 @AbhiPrasad
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.