lib/raygun/client.rb in raygun4ruby-1.1.9 vs lib/raygun/client.rb in raygun4ruby-1.1.11

- old
+ new

@@ -139,29 +139,33 @@ def build_payload_hash(exception_instance, env = {}) custom_data = env.delete(:custom_data) || {} tags = env.delete(:tags) || [] tags << rack_env if rack_env_present? + grouping_key = env.delete(:grouping_key) + error_details = { machineName: hostname, version: version, client: client_details, error: error_details(exception_instance), userCustomData: Raygun.configuration.custom_data.merge(custom_data), tags: Raygun.configuration.tags.concat(tags).uniq, request: request_information(env) } + error_details.merge!(groupingKey: grouping_key) if grouping_key + error_details.merge!(user: user_information(env)) if affected_user_present?(env) { occurredOn: Time.now.utc.iso8601, details: error_details } end def create_entry(payload_hash) - self.class.post("/entries", headers: @headers, body: JSON.generate(payload_hash)) + self.class.post("/entries", verify_peer: true, verify: true, headers: @headers, body: JSON.generate(payload_hash)) end def filter_params(params_hash, extra_filter_keys = nil) if Raygun.configuration.filter_parameters.is_a?(Proc) filter_params_with_proc(params_hash, Raygun.configuration.filter_parameters)