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

Expose ability to reset internal state of metrics (specifically INP) #461

Closed
srubin opened this issue Apr 10, 2024 · 2 comments
Closed

Expose ability to reset internal state of metrics (specifically INP) #461

srubin opened this issue Apr 10, 2024 · 2 comments

Comments

@srubin
Copy link

srubin commented Apr 10, 2024

We are using this library to track INP in a large single page app. Sessions with the app can be long -- sometimes hours. We are interested in collecting INP over a smaller time range, rather than for an entire session. The docs indicate that it's important to track changes to INP over time, but INP as reported by this library is only ever increasing. So, it doesn't reflect the experience that a user is having for a given, say, 10 minute span of a session.

I was wondering if there has been any thought about exposing a function that resets the internal state for a given metric. I can fork the library and implement what I need for our use case (e.g., it seems like this might be close to the behavior we need), but I'm wondering if others have run into this, or if there's something I'm missing about my understanding of the library and its best practices.

@tunetheweb
Copy link
Member

Duplicate of #448

@srubin
Copy link
Author

srubin commented Apr 15, 2024

Missed that, thanks! Closing as a dupe.

@srubin srubin closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
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

No branches or pull requests

3 participants
@srubin @tunetheweb and others