Skip to content

FormatException is thrown when an invalid env var value is set #3690

Closed
@pellared

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?

Reference: open-telemetry/opentelemetry-specification#2766

CC @reyang @cijothomas @CodeBlanch

Metadata

Assignees

Labels

bugSomething isn't workingpkg:OpenTelemetryIssues related to OpenTelemetry NuGet package

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions