lib/opentelemetry/instrumentation/mysql2/instrumentation.rb in opentelemetry-instrumentation-mysql2-0.19.1 vs lib/opentelemetry/instrumentation/mysql2/instrumentation.rb in opentelemetry-instrumentation-mysql2-0.20.0
- old
+ new
@@ -27,10 +27,10 @@
defined?(::Mysql2)
end
option :peer_service, default: nil, validate: :string
option :enable_sql_obfuscation, default: false, validate: :boolean
- option :db_statement, default: :include, validate: ->(opt) { %I[omit include obfuscate].include?(opt) }
+ option :db_statement, default: :include, validate: %I[omit include obfuscate]
private
def require_dependencies
require_relative 'patches/client'