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

Support recording sampleRate #80

Open
id0Sch opened this issue Dec 10, 2020 · 1 comment
Open

Support recording sampleRate #80

id0Sch opened this issue Dec 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@id0Sch
Copy link

id0Sch commented Dec 10, 2020

As a way to limit traffic and data usage, we (at the company I work for) implemented a recording sampleRate mechanism over the legacy snippet.

we do something like this:

const sampleRate = 0.02

.....

require('./external/fullstory') 
window.FS.shutdown() 

if (Math.random() <= sampleRate) {
	....
	window.FS.restart()
}

It could be nice to have this functionality come out of the box via the npm module.
Let me know what you think.
Thanks!

@patrick-fs
Copy link
Member

Hey @id0Sch thanks for your suggestion! We'll look into this.

@patrick-fs patrick-fs added the enhancement New feature or request label Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants