feat: add standardized environment variable configuration pattern for OFREP SDKs#54
Conversation
… OFREP SDKs Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
beeme1mr
left a comment
There was a problem hiding this comment.
I'm assuming this is geared towards server use cases. Should we add any considerations for web or mobile?
At this point it is only considering server use cases. I don’t know if it should be part of this ADR or a separate one for the client/web uses. |
|
I was thinking maybe we can do |
I don't have any particular issues with naming. I think we just need to reach a consensus on which version we will take. At the moment we have:
Please vote with a reaction to have an idea on what is on peoples' head. I think the ENDPOINT, TIMEOUT and HEADERS we have an agreement. |
|
Thanks for kicking this off @askpt!
To me it makes sense to have all OpenFeature related vars under a common prefix.
I think I would prefer
The question to me here is, if provider really want to prefix their env variables with On the other hand, having To sum up, I am leaning towards |
…n ADR Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Thanks for your contribution @lukas-reining. |
I like it. |
|
Okay fine to me @askpt. I think it is okay to use |
@erka I believe we need to have
@lukas-reining I would prefer My general idea would be |
It’s actually my point. We don’t need the provider name there. Using |
I am thinking on the 0.1%. Imagine those that are using multi-provider or similar. (Please note for multi-provider, multiple ofrep environment variables won't work) |
There is another won't work case for vendored env names.
Originally posted in open-feature/go-sdk-contrib#758 (comment) |
|
So… what’s the plan here? Someone’s gotta pull in one direction, or we’ll be spinning here forever. @beeme1mr please, lead the way. |
|
It's recommended to keep it simple and starting with |
Thanks @beeme1mr. It seems it won't change from the original proposal. |
lukas-reining
left a comment
There was a problem hiding this comment.
After discussion I am okay with OFREP_.
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
|
Overall I agree with this proposal; however, I recommend that we be explicit that the timeout is in ms: |
Signed-off-by: André Silva 2493377+askpt@users.noreply.github.com
This PR
This pull request adds a new Architecture Decision Record (ADR) describing a standardized pattern for configuring OFREP SDKs using environment variables. The ADR proposes aligning with industry best practices from OpenTelemetry, aiming to improve consistency, flexibility, and cloud-native compatibility for SDK configuration.
Related Issues
Fixes #53