summaryrefslogtreecommitdiff
path: root/lib/gitlab/sentry.rb
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-01-16 15:29:05 +0200
committerAndrew Newdigate <andrew@gitlab.com>2019-01-16 15:29:05 +0200
commit2c0d69d310489af72f8689a07f3a28efd8065d8c (patch)
treeaaa365e76da2c258a7fa4431b1ccce2efa4124e0 /lib/gitlab/sentry.rb
parenteec16ee28c7b377101ab3d5f81835cd8c2020981 (diff)
downloadgitlab-ce-2c0d69d310489af72f8689a07f3a28efd8065d8c.tar.gz
Extract process_name from GitLab::Sentry
GitLab::Sentry has a program_context method to determine whether a Sentry exception occurred in Sidekiq or rails. Since we will need similar functionality for distributed tracing, this change extracts the program_context method into GitLab.process_name for more general consumption.
Diffstat (limited to 'lib/gitlab/sentry.rb')
-rw-r--r--lib/gitlab/sentry.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/gitlab/sentry.rb b/lib/gitlab/sentry.rb
index 46d01964eac..956c16117f5 100644
--- a/lib/gitlab/sentry.rb
+++ b/lib/gitlab/sentry.rb
@@ -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