iand675 / hs-opentelemetry

OpenTelemetry support for the Haskell programming language
https://iankduncan.com/projects/opentelemetry
BSD 3-Clause "New" or "Revised" License
75 stars 34 forks source link

Fix reading boolean environment variables #153

Closed marinelli closed 4 weeks ago

marinelli commented 4 weeks ago

As written in the specification [1], a boolean environment variable is true iff is equal to the case-insensitive string "true".

[1] https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#boolean-value

~Waiting for https://github.com/iand675/hs-opentelemetry/pull/148.~

michaelpj commented 4 weeks ago

Also, did you want to use this for OTEL_SDK_DISABLE too?

Haven't merged that yet!