-
Notifications
You must be signed in to change notification settings - Fork 881
FormatException is thrown when an invalid env var value is set #3690
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingpkg:OpenTelemetryIssues related to OpenTelemetry NuGet packageIssues related to OpenTelemetry NuGet package
Milestone
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpkg:OpenTelemetryIssues related to OpenTelemetry NuGet packageIssues related to OpenTelemetry NuGet package