pass the canvas release to sentry

closes CNVS-26745

We were already passing it as a tag, but sentry now has a native release
field that provides additional functionality, so pass it there as well.
We'll keep the tag because it's still nice for searching.

Change-Id: I5447ecabf3cc7246ebc36abd05829320d8d449a7
Reviewed-on: https://gerrit.instructure.com/70889
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
This commit is contained in:
Brian Palmer 2016-01-22 16:06:27 -07:00
parent b3fa0c35ae
commit 38e69d175c
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,7 @@ gem 'useragent', '0.10.0', require: false
gem 'crocodoc-ruby', '0.0.1', require: false
gem 'hey', '1.3.0', require: false
gem 'sentry-raven', '0.13.2', require: false
gem 'sentry-raven', '0.15.3', require: false
gem 'canvas_statsd', '1.0.3'
gem 'diplomat', '0.14.0', require: false

View File

@ -13,6 +13,7 @@ if settings.present?
config.silence_ready = true
config.dsn = settings[:dsn]
config.tags = settings.fetch(:tags, {}).merge('canvas_revision' => Canvas.revision)
config.release = Canvas.revision
config.sanitize_fields += Rails.application.config.filter_parameters.map(&:to_s)
config.sanitize_credit_cards = false
config.excluded_exceptions += %w{