-
Notifications
You must be signed in to change notification settings - Fork 789
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
chore: changing all env params to be required #1328
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1328 +/- ##
==========================================
- Coverage 92.29% 92.26% -0.04%
==========================================
Files 180 178 -2
Lines 4452 4342 -110
Branches 928 896 -32
==========================================
- Hits 4109 4006 -103
+ Misses 343 336 -7 |
Just one question before moving forward with this: do we:
|
Yes we want to have logic in one place, instead of keeping this in many places including frontend and backend as well as in contrib repo. You want to make sure the env params will be ready to use across all different plugins / platforms etc. That was the whole purpose of having one class for getting the env. without worry of platform, extra checking etc.. So that the same params will be interpreted the same way everywhere. |
Ah I see, thanks for confirming. |
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.
LGTM. I have one non-blocking question. How do we want precedence to work when there is in-code configuration and environment variable configuration. If we decided we wanted environment variable configuration to take precedence over in-code configuration having values be unset would be meaningful.
Not sure if we already have a strategy for that but If I were to decide I would say the user inputs will always take precedence over env variable - user variable (config input) should wins |
Definitely agree in-code always takes precedence over env. |
… fashion (open-telemetry#1328) * Extract X-Ray header in a case-insensitive fashion * Back to apostrophes * Switch to 1 tab = 2 spaces * Add semis * Apply prettier to tests as well * chore: fix lint --------- Co-authored-by: Amir Blum <amirgiraffe@gmail.com> Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
… fashion (open-telemetry#1328) * Extract X-Ray header in a case-insensitive fashion * Back to apostrophes * Switch to 1 tab = 2 spaces * Add semis * Apply prettier to tests as well * chore: fix lint --------- Co-authored-by: Amir Blum <amirgiraffe@gmail.com> Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
… fashion (open-telemetry#1328) * Extract X-Ray header in a case-insensitive fashion * Back to apostrophes * Switch to 1 tab = 2 spaces * Add semis * Apply prettier to tests as well * chore: fix lint --------- Co-authored-by: Amir Blum <amirgiraffe@gmail.com> Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
… fashion (open-telemetry#1328) * Extract X-Ray header in a case-insensitive fashion * Back to apostrophes * Switch to 1 tab = 2 spaces * Add semis * Apply prettier to tests as well * chore: fix lint --------- Co-authored-by: Amir Blum <amirgiraffe@gmail.com> Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
all env params with defaults should be changed to required