From 863c9ec4f5ddb96827ba0683f8686835e364f134 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Tue, 12 Dec 2023 15:59:30 +0100 Subject: [PATCH] Make the settings `nilable` --- lib/datadog/tracing/contrib/mysql2/configuration/settings.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/datadog/tracing/contrib/mysql2/configuration/settings.rb b/lib/datadog/tracing/contrib/mysql2/configuration/settings.rb index 9bcaecc4b37..04b097b23b7 100644 --- a/lib/datadog/tracing/contrib/mysql2/configuration/settings.rb +++ b/lib/datadog/tracing/contrib/mysql2/configuration/settings.rb @@ -52,8 +52,7 @@ class Settings < Contrib::Configuration::Settings end option :on_error do |o| - o.type :proc - o.default_proc(&Tracing::SpanOperation::Events::DEFAULT_ON_ERROR) + o.type :proc, nilable: true end end end