-
Notifications
You must be signed in to change notification settings - Fork 153
Docs: add supported values for env variables #724
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
Comments
I intend to work on this. I will do some research and add my findings as a comment here before opening a PR. |
Here's the information I've collected from the existing documentation. Note that the existing Description column often contains an example and/or default value. I intend to extract these from the description field in the PR. This information will be included in a dedicated column (see below tables for an example) The tables below contain a summary of the information for review and discussion. In the PR I intend to include the existing Constructor parameter column as well. Action Plan
General
Tracer
Metrics
Logging
|
Hi Connor, thank you for the detailed proposal. Regarding the table in
For the other tables I like your proposal, the only two remarks I have are these:
Also I agree with your proposal about the service name, any non empty string is valid. Finally, regarding your question about the default value for service name, you are right, both Tracer & Metrics don't actually set a default service name, although they should. To correct this, I would propose:
Let me know what you think! |
|
Description of the improvement
Summary of the proposal
In all sections where the supported environment variables are documented for a certain utility, it would be helpful to clarify what values are supported, the default values, and an example of a supported value.
How, where did you look for information
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/#environment-variables
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/#utility-settings
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/logger/#utility-settings
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/metrics/#utility-settings
Missing or unclear documentation
Improvement
Add these fields in each table.
Related existing documentation
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/#environment-variables
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/#utility-settings
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/logger/#utility-settings
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/metrics/#utility-settings
Related issues, RFCs
N/A
The text was updated successfully, but these errors were encountered: