-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add sample rate to logs if set #275
Conversation
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.
I have some questions, but I trust however you want to handle them.
* sampleRate is now case-insensitive * Negative values fall back to default rate of 1 * Floats are rounded and coerced to ints
I know you approved with suggestions but I wouldn't mind an extra check here. I made all the changes you suggested. |
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.
Looks great! One minor suggestion...
Co-authored-by: Kent Quirk <[email protected]>
Which problem is this PR solving?
Short description of the changes
traces
tocommon
, including test casessampleRate
to log eventssampleRate
key name case-insensitiveIt would be nice to have an error if an invalid sampleRateKey is found. Right now we just return empty string.