Skip to content

Commit

Permalink
Wrap error handler settings in proc to store value to be able to stor…
Browse files Browse the repository at this point in the history
…e values as procs
  • Loading branch information
GustavoCaso committed Jun 26, 2023
1 parent 35ddd1c commit 569713b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Settings < Contrib::Configuration::Settings
end

option :service_name
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Settings < Contrib::Configuration::Settings

option :service_name
option :client_service_name
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Settings < Contrib::Configuration::Settings
end

option :distributed_tracing, default: true
option :error_handler, default: DEFAULT_ERROR_HANDLER
option :error_handler, default: proc { DEFAULT_ERROR_HANDLER }
option :split_by_domain, default: false

option :service_name do |o|
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/grpc/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Settings < Contrib::Configuration::Settings
end
end

option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/que/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Settings < Contrib::Configuration::Settings
option :tag_data do |o|
o.default { env_to_bool(Ext::ENV_TAG_DATA_ENABLED, false) }
end
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Settings < Contrib::Configuration::Settings
end

option :service_name
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Settings < Contrib::Configuration::Settings
end

option :service_name
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
option :tag_body, default: false
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Settings < Contrib::Configuration::Settings

option :service_name
option :client_service_name
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
option :quantize, default: {}
option :distributed_tracing, default: false
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Settings < Contrib::Configuration::Settings
end

option :service_name
option :error_handler, default: Tracing::SpanOperation::Events::DEFAULT_ON_ERROR
option :error_handler, default: proc { Tracing::SpanOperation::Events::DEFAULT_ON_ERROR }
option :tag_body, default: false
end
end
Expand Down

0 comments on commit 569713b

Please sign in to comment.