diff options
author | Stan Hu <stanhu@gmail.com> | 2016-08-25 06:06:16 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-08-26 05:42:52 +0300 |
commit | 0fe4cf2b0fdbc33572f11bba1a4426ee05ed7599 (patch) | |
tree | f1c8fb645d32aa6dca530cccef0350d6811b049d /config/initializers/sentry.rb | |
parent | 1bf2fe276ff084d3b2e0860710ec115a317dd9fc (diff) |
Fix Sentry not reporting right program for Sidekiq workers
Moves program tag into the global configuration since this doesn't
change and since Sidekiq workers get a unique context for each event.
Closes #21410
Diffstat (limited to 'config/initializers/sentry.rb')
-rw-r--r-- | config/initializers/sentry.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 74fef7cadfe..5892c1de024 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -18,6 +18,7 @@ if Rails.env.production? # Sanitize fields based on those sanitized from Rails. config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s) + config.tags = { program: Gitlab::Sentry.program_context } end end end |