-
Notifications
You must be signed in to change notification settings - Fork 330
Description
Environment variables are an important part of process data models, and they should be added to the process registry schema.
process.env_vars was previously part of #564, and was removed because there are some open discussion items that should be decided before being added to the schema.
Some of these questions to resolve are:
- Should env_vars be an object, with environment variable names as free-form leaf nodes, as suggested here?
Although this suggestion could have advantages, I'm not sure if it's possible. According to the Open Group standard, environment variable names names shall not contain the character '=' (ref), but have no other exclusions, so extended character sets, symbols, etc are valid as part of environment variable names. I'm not sure if this works with OTel key names.
One alternative to using freeform keys is to store environment variables as a string array, such as this
- Should filtering be required or recommended? (discussion)
Environment variables could contain sensitive information, such as API keys, and this information should be redacted to prevent security problems. It should be decided if filtering is required (using MUST) or recommended (using SHOULD).