diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2019-01-16 15:29:05 +0200 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2019-01-16 15:29:05 +0200 |
commit | 2c0d69d310489af72f8689a07f3a28efd8065d8c (patch) | |
tree | aaa365e76da2c258a7fa4431b1ccce2efa4124e0 /config/initializers/sentry.rb | |
parent | eec16ee28c7b377101ab3d5f81835cd8c2020981 (diff) | |
download | gitlab-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 'config/initializers/sentry.rb')
-rw-r--r-- | config/initializers/sentry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 2a6c5148f71..abc91c3ae51 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -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 |