diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-10-06 13:41:01 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-10-06 13:41:01 +0000 |
commit | 7f8e720f415ff50f791d9efd49b774c9da9ab109 (patch) | |
tree | 246466fd9cbf92905569a9d0199c42e34f0bd6ba /lib/api | |
parent | f55f24c49747f74659c4aa8ade48fd167fe67034 (diff) | |
parent | 60a35e4230404b84d4aee8015fb7821b0b194277 (diff) | |
download | gitlab-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.rb | 2 |
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 |