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

Add support for Long animation frame timing API #11719

Closed
5 tasks done
AbhiPrasad opened this issue Apr 22, 2024 · 2 comments
Closed
5 tasks done

Add support for Long animation frame timing API #11719

AbhiPrasad opened this issue Apr 22, 2024 · 2 comments
Assignees

Comments

@AbhiPrasad
Copy link
Member

AbhiPrasad commented Apr 22, 2024

Problem Statement

https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing

Solution Brainstorm

Get information about long animation frames and understand why they happening. We can create spans around these long animation frames.

This can essentially replace current usage of long tasks API

@gggritso
Copy link
Member

Apparently Web Vitals onINP will return new attribution information that includes LoAF! Would be rad to get that stuff into INP transactions and into Sentry

@AbhiPrasad
Copy link
Member Author

the web vitals stuff is slightly blocked by #11186, but yes would be awesome to have that info as well!

KevinL10 added a commit that referenced this issue Jul 10, 2024
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:

```js
Sentry.init({
  dsn: '__PUBLIC_DSN__',
  integrations: [
    Sentry.browserTracingIntegration({
      enableLongAnimationFrame: true,
    }),
  ],
  tracesSampleRate: 1,
});
```
KevinL10 added a commit to getsentry/sentry that referenced this issue Jul 23, 2024
#74637)

Enables long animation frame support in the browser SDK for internal
testing.

See getsentry/sentry-javascript#11719 for more
information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants