lib/opentelemetry/instrumentation/base.rb in opentelemetry-instrumentation-base-0.22.2 vs lib/opentelemetry/instrumentation/base.rb in opentelemetry-instrumentation-base-0.22.3
- old
+ new
@@ -351,10 +351,10 @@
def coerce_env_var(env_var, validation_type)
case validation_type
when :array
env_var.split(',').map(&:strip)
when :boolean
- env_var.to_s.strip.downcase == 'true'
+ env_var.to_s.strip.casecmp('true').zero?
when :integer
env_var.to_i
when :string
env_var.to_s.strip
when :enum