-
Notifications
You must be signed in to change notification settings - Fork 153
fix(examples): fix errors in logger and metrics examples #509
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
Conversation
Changes: - Use shortened imports where possible - Use 'serviceName' instead of 'service' - Correct some of the relative path imports to work again - Correct spacing around '}' - Typo in 'metrics/examples/hello-world.ts'
@@ -17,6 +17,6 @@ const lambdaHandler = async (): Promise<void> => { | |||
}; | |||
|
|||
const handlerWithMiddleware = middy(lambdaHandler) | |||
.use(logMetrics(metrics})); |
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.
This is an actual compile error in TS
@dreamorosi @flochaz - maybe in the long term, some of these examples will be dropped or added to the test harness or move to a separate repo :) |
Can you open an issue to explain first what is the problem ? |
And let's try to follow contribution guidelines and have PR fixing one thing issue at a time. thx ! |
Ok. These examples have typos and errors in them. I can raise issues for it too. And the link for the tracer example is wrong again. |
|
@flochaz - there is no explicit call out for an issue before a PR? Also there is alot of typos and issues in this guide referencing python or CDK: Example of CDK project references: Examples of Python references: |
Thanks a lot for your contribution and we will make sure we will be clearer in the contributing guide on our expectation and especially on utility of issue creation and PR scope. |
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 this contribution!
Description of your changes
How to verify this change
Run
npm test
and open and fix examples in the metrics and logger packages.Related issues, RFCs
PR status
Is this ready for review?: YES
Is it a breaking change?: NO
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.