diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 18:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 18:08:48 +0300 |
commit | 180cd023a11c0eb413ad0de124d9758ea25672bd (patch) | |
tree | 63d77be00a22dc637daa0b6d5b644e230f5f4890 /lib/sentry/client.rb | |
parent | be3e24ea3c9f497efde85900df298ce9bc42fce8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry/client.rb')
-rw-r--r-- | lib/sentry/client.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sentry/client.rb b/lib/sentry/client.rb index 8898960c24d..36ec1caf80c 100644 --- a/lib/sentry/client.rb +++ b/lib/sentry/client.rb @@ -54,6 +54,12 @@ module Sentry end end + def http_post(url, params = {}) + http_request do + Gitlab::HTTP.post(url, **request_params.merge(body: params.to_json)) + end + end + def http_request response = handle_request_exceptions do yield |