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
259a6d1a
Commit
259a6d1a
authored
Jan 16, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
29fae38e
aeb11d15
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
changelogs/unreleased/an-gilab-process-name.yml
changelogs/unreleased/an-gilab-process-name.yml
+5
-0
config/initializers/sentry.rb
config/initializers/sentry.rb
+1
-1
lib/gitlab.rb
lib/gitlab.rb
+8
-0
lib/gitlab/sentry.rb
lib/gitlab/sentry.rb
+0
-8
No files found.
changelogs/unreleased/an-gilab-process-name.yml
0 → 100644
View file @
259a6d1a
---
title
:
Extract process_name from GitLab::Sentry
merge_request
:
24422
author
:
type
:
other
config/initializers/sentry.rb
View file @
259a6d1a
...
...
@@ -19,7 +19,7 @@ def configure_sentry
config
.
sanitize_fields
=
Rails
.
application
.
config
.
filter_parameters
.
map
(
&
:to_s
)
# Sanitize authentication headers
config
.
sanitize_http_headers
=
%w[Authorization Private-Token]
config
.
tags
=
{
program:
Gitlab
::
Sentry
.
program_context
}
config
.
tags
=
{
program:
Gitlab
.
process_name
}
end
end
end
...
...
lib/gitlab.rb
View file @
259a6d1a
...
...
@@ -89,4 +89,12 @@ module Gitlab
def
self
.
dev_env_or_com?
Rails
.
env
.
development?
||
org?
||
com?
end
def
self
.
process_name
return
'sidekiq'
if
Sidekiq
.
server?
return
'console'
if
defined?
(
Rails
::
Console
)
return
'test'
if
Rails
.
env
.
test?
'web'
end
end
lib/gitlab/sentry.rb
View file @
259a6d1a
...
...
@@ -52,14 +52,6 @@ module Gitlab
end
end
def
self
.
program_context
if
Sidekiq
.
server?
'sidekiq'
else
'rails'
end
end
def
self
.
should_raise_for_dev?
Rails
.
env
.
development?
||
Rails
.
env
.
test?
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