Closed
Description
Description of the feature request
Problem statement
There are some areas that should be revisited or implemented.
Summary of the feature
- We should update the implementation of randomisation of sampling - currently implemented like this:
private setLogsSampled(): void {
const sampleRateValue = this.getSampleRateValue();
// TODO: revisit Math.random() as it's not a real randomization
this.logsSampled = sampleRateValue !== undefined && (sampleRateValue === 1 || Math.random() < sampleRateValue);
}
Not optimal.
-
Implementation of middy-compatible middleware logic to match the one of the decorator which is already existing.
-
Correlation ID's propagation - see Feature request: correlation ID's propagation #129
-
Optional: replace lodash library with in-house custom code
Code examples
Benefits for you and the wider AWS community
Describe alternatives you've considered
Additional context