-
Notifications
You must be signed in to change notification settings - Fork 153
feat(logger): refresh sample rate calculation per invocation #3644
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(logger): refresh sample rate calculation per invocation #3644
Conversation
…in logger context
…or for invocations
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.
Just one minor comment in the docs, other than that it's good to go.
|
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.
Thanks for the quick PR
…in logger context## Summary
Changes
This PR modifies the
sampleRate
behaviour for the logger and will now sample per invocation, instead of execution environment. When usinginjectLambdaContext
either as decorator or as middleware, we now automatically refresh sample rate.Issue number: closes #3278
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.