Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
89aef543
Commit
89aef543
authored
Mar 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
07c3bf16
74ebeebb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
Gemfile.lock
Gemfile.lock
+1
-1
config/initializers/sentry.rb
config/initializers/sentry.rb
+15
-0
No files found.
Gemfile.lock
View file @
89aef543
...
...
@@ -843,7 +843,7 @@ GEM
selenium-webdriver (3.12.0)
childprocess (~> 0.5)
rubyzip (~> 1.2)
sentry-raven (2.
7.4
)
sentry-raven (2.
9.0
)
faraday (>= 0.7.6, < 1.0)
settingslogic (2.0.9)
sexp_processor (4.11.0)
...
...
config/initializers/sentry.rb
View file @
89aef543
...
...
@@ -20,6 +20,21 @@ def configure_sentry
# Sanitize authentication headers
config
.
sanitize_http_headers
=
%w[Authorization Private-Token]
config
.
tags
=
{
program:
Gitlab
.
process_name
}
# Debugging for https://gitlab.com/gitlab-org/gitlab-ce/issues/57727
config
.
before_send
=
lambda
do
|
event
,
hint
|
if
ActiveModel
::
MissingAttributeError
===
hint
[
:exception
]
columns_hash
=
ActiveRecord
::
Base
.
connection
.
schema_cache
.
instance_variable_get
(
:@columns_hash
)
.
map
{
|
k
,
v
|
[
k
,
v
.
map
(
&
:first
)]
}
.
to_h
event
.
extra
.
merge!
(
columns_hash
)
end
event
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment