-
Notifications
You must be signed in to change notification settings - Fork 5
Allow sampling #7
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Activity
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
I need to run this in production because I simply cannot profile locally. If my server has many hits this takes a big toll on my log quota so I'd like to sample when trace information is dumped.
I think the user should be able to provide a sampling rate, like 500, it has 1/500 chance of being recorded.
I think this should be done in the
newconstructor:Something like