Skip to content

Conversation

kawaaaas
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR improves code quality in the logger package by adding readonly modifiers to class members that are never reassigned after initialization, removing redundant code structures, and cleaning up unused collections in test files.

Note: The SonarQube issue AZItlgwecEUs2753LD68 for sampling.test.ts #sampleRateValue was not addressed as the relevant code was already removed in PR #4251.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4255


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

boring-cyborg bot commented Aug 18, 2025

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #typescript channel on our Powertools for AWS Lambda Discord: Invite link

@boring-cyborg boring-cyborg bot added logger This item relates to the Logger Utility tests PRs that add or change tests labels Aug 18, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label Aug 18, 2025
Copy link

@svozza svozza assigned svozza and kawaaaas and unassigned svozza Aug 18, 2025
@sdangol sdangol merged commit 5ac7712 into aws-powertools:main Aug 18, 2025
42 checks passed
Copy link

boring-cyborg bot commented Aug 18, 2025

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logger This item relates to the Logger Utility size/M PR between 30-99 LOC tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance: Mark private members as readonly and fix code quality issues in logger package
3 participants