-
Notifications
You must be signed in to change notification settings - Fork 403
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): add dynamic logging key support #1505
Conversation
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: chore(ci): add linter for GitHub Actions as pre-commit hook (aws-powertools#1479) Signed-off-by: heitorlessa <[email protected]>
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: chore(ci): add workflow to suggest splitting large PRs (aws-powertools#1480)
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: update changelog with latest changes
…60 (aws-powertools#1481) Bumps [mypy-boto3-dynamodb](https://github.com/youtype/mypy_boto3_builder) from 1.24.55.post1 to 1.24.60. - [Release notes](https://github.com/youtype/mypy_boto3_builder/releases) - [Commits](https://github.com/youtype/mypy_boto3_builder/commits) --- updated-dependencies: - dependency-name: mypy-boto3-dynamodb dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…60 (aws-powertools#306) Bumps [mypy-boto3-dynamodb](https://github.com/youtype/mypy_boto3_builder) from 1.24.55.post1 to 1.24.60. - [Release notes](https://github.com/youtype/mypy_boto3_builder/releases) - [Commits](https://github.com/youtype/mypy_boto3_builder/commits) --- updated-dependencies: - dependency-name: mypy-boto3-dynamodb dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s-powertools#1474) Co-authored-by: Ruben Fonseca <[email protected]> Co-authored-by: Leandro Damascena <[email protected]>
…owertools-python into develop * 'develop' of https://github.com/heitorlessa/aws-lambda-powertools-python: chore(deps-dev): bump mypy-boto3-dynamodb from 1.24.55.post1 to 1.24.60 (aws-powertools#306)
…ools#1483) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
pyproject.toml isn't being pushed back to trunk as part of release.
…ws-powertools#1455) Co-authored-by: Heitor Lessa <[email protected]>
Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need. |
No related issues found. Please ensure there is an open issue related to this change to avoid significant delays or closure. |
…ls#1507) Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.40.0 to 2.41.0. - [Release notes](https://github.com/aws/aws-cdk/releases) - [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.md) - [Commits](aws/aws-cdk@v2.40.0...v2.41.0) --- updated-dependencies: - dependency-name: aws-cdk-lib dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hi @OGoodness! Thanks for sending this PR and helping to improve the project! We suggest not removing the Before I starting to review this PR, could you please check the errors in the build action and fix them ? You can run Thank you 🚀 |
…ws-powertools#1499) Co-authored-by: Leandro Damascena <[email protected]> Co-authored-by: Heitor Lessa <[email protected]> Co-authored-by: heitorlessa <[email protected]> Co-authored-by: Release bot <[email protected]> Co-authored-by: Peter Schutt <[email protected]> Co-authored-by: Ran Isenberg <[email protected]> Co-authored-by: Ran Isenberg <[email protected]>
@leandrodamascena Decided to remove the optional parameter from the input and not pass it in to Tested this build using 3.7, so it should be functional |
🤦 |
Ran mypy individually on 3.7, 3.8, 3.9, then ran Notes:
|
340333f
to
7002812
Compare
Hello @OGoodness! Sorry for the delay in responding, but we were working on some items for v2 and are now I'm ready to work on it. I see you've fixed most of the bugs in mypy, but I'm still worried about this support in Python 3.7. Could you please write some tests to cover this new code and make sure everything is working as expected? Thank you 🚀 |
As discussed, closing in favour of #1658 |
Issue number: #1167
Summary
Allows extra keywords provided to
logger.xxx
to be added to log viaappend_keys
Changes
Logger subclass extends the
_log
method, allowing extra keys to be passed in without throwing error due to excess parameters. Routes expected parameters directly to super_log
after appending excess keys.User experience
Nothing is removed from the user, and they can now add logging keys with little effort.
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
NoAcknowledgment
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.