Sha256: d69c4a997e8e378836ee941de6fdcd9603238533944f5355ccbd7d01f05c37d5
Contents?: true
Size: 955 Bytes
Versions: 5
Compression:
Stored size: 955 Bytes
Contents
ZuoraObservability.configure do |config| config.zecs_service_hook = lambda do |controller| custom_payload = {} if controller.instance_variable_defined?(:@appinstance) appinstance = controller.instance_variable_get(:@appinstance) if appinstance.logitems.present? && appinstance.logitems.class == Hash ActiveSupport::Deprecation.warn("logitems is deprecated, please use zecs_service_hook. See 'https://gitlab.zeta.tools/extension-products/incubating-projects/zuora_observability/-/blob/master/doc/logging.md' for more details.") custom_payload.merge!(appinstance.logitems) end end custom_payload end config.add_custom_payload_hook do |controller| custom_payload = {} if controller.instance_variable_defined?(:@appinstance) appinstance = controller.instance_variable_get(:@appinstance) custom_payload.merge!({ email: appinstance.connect_user }) end custom_payload end end
Version data entries
5 entries across 5 versions & 1 rubygems