FormatException is thrown when an invalid env var value is set #3690
Closed
Description
According the OTel spec:
For variables accepting an enum value, if the user provides a value the SDK does not recognize, the SDK MUST generate a warning and gracefully ignore the setting.
This is not what is done in multiple places like here.
Moreover, because of this, it won't be easy to set defaults for these values in .NET Automatic Instrumentation.
Can/do we want to address this? Won't it be seen as a breaking change?