mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 20:45:21 +02:00
Add tags to sync failures
This commit is contained in:
parent
e70295394a
commit
d8e34cf791
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ class Sync < ApplicationRecord
|
||||||
|
|
||||||
Sentry.capture_exception(error) do |scope|
|
Sentry.capture_exception(error) do |scope|
|
||||||
scope.set_context("sync", { id: id, syncable_type: syncable_type, syncable_id: syncable_id })
|
scope.set_context("sync", { id: id, syncable_type: syncable_type, syncable_id: syncable_id })
|
||||||
|
scope.set_tags(sync_id: id)
|
||||||
end
|
end
|
||||||
|
|
||||||
update!(
|
update!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue