-
Notifications
You must be signed in to change notification settings - Fork 70
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
Suggestion: Add Structured logging #76
Comments
Great suggestion, makes sense to me.
Let's use this as the only logging solution. We'll cut a new minor version release and mark it as backward incompatible.
Structlog seems widely used/accepted so let's go with it. I asked around and nobody else had a strong preference. |
I neglected to explain the why, so I will add here: The intention is to produce clear signals on errors and success messages on connection reporting. If users setup SLOs around the error messages rather than downstream events (like how long a NAT gateway was used), it would make SLO reporting more accurate. |
Makes sense. I could see a number of use cases, from connection success monitoring to failover event monitoring. |
Closing this since it hasn't been active in a while. Do feel free to submit a PR if you'd like to see this enhancement! |
Hey gang, I am writing to let you know that I am taking a look at this now. This is my first time using AWS SAM (we typically run the Lambda containers ourselves via When running the Thanks! |
Another thing too: with regards to [this comment](#76 (comment), this would be a seperate PR since it would involve some changes in how the reporting for Shall I raise a separate issue for this before breaking out another PR for this @bwhaley? |
PR is up! |
PR for exposing the successful connection logs is also up: |
Hi team!
We are looking to enhance the log outputs of
alterNAT
Lambdas in the form of structured logging. This would tremendously improve the searchability and analysis of logs when errors surface.For those not privy to structured logging, check out this article.
Would the maintainers of this repo be open to a PR that featured structured logging? We'd be happy to implement it!
Implementation questions:
structlog
(https://www.structlog.org/en/stable/ & https://github.com/hynek/structlog) as a potential library. It has a fair amount of stars, and is in active development.I have read through the Contributing, and Code of Conduct documentation for the repo, though I am also open to suggestions, or guidelines you may have that hasn't yet been covered in the documentation.
Thanks!
The text was updated successfully, but these errors were encountered: