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