summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-10-06 13:41:01 +0000
committerDouwe Maan <douwe@gitlab.com>2017-10-06 13:41:01 +0000
commit7f8e720f415ff50f791d9efd49b774c9da9ab109 (patch)
tree246466fd9cbf92905569a9d0199c42e34f0bd6ba /lib/api
parentf55f24c49747f74659c4aa8ade48fd167fe67034 (diff)
parent60a35e4230404b84d4aee8015fb7821b0b194277 (diff)
downloadgitlab-ce-7f8e720f415ff50f791d9efd49b774c9da9ab109.tar.gz
Merge branch 'api-sentry-extra' into 'master'
Send API parameters as extra data for sentry errors See merge request gitlab-org/gitlab-ce!14644
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 4964a76bef6..a87297a604c 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -287,7 +287,7 @@ module API
if sentry_enabled? && report_exception?(exception)
define_params_for_grape_middleware
sentry_context
- Raven.capture_exception(exception)
+ Raven.capture_exception(exception, extra: params)
end
# lifted from https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb#L60