chore(sentry): use "procedure" tag everywhere for a better debug experience
This commit is contained in:
parent
126819939b
commit
d20114f978
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ class ExportJob < ApplicationJob
|
|||
discard_on ActiveRecord::RecordNotFound
|
||||
|
||||
before_perform do |job|
|
||||
Sentry.set_tags(procedure_id: job.arguments.first.procedure.id)
|
||||
Sentry.set_tags(procedure: job.arguments.first.procedure.id)
|
||||
end
|
||||
|
||||
def perform(export)
|
||||
|
|
|
@ -10,7 +10,7 @@ class SerializerService
|
|||
|
||||
def self.dossiers(procedure)
|
||||
Sentry.with_scope do |scope|
|
||||
scope.set_tags(procedure_id: procedure.id)
|
||||
scope.set_tags(procedure: procedure.id)
|
||||
|
||||
data = execute_query('serializeDossiers', { number: procedure.id })
|
||||
data && data['demarche']['dossiers']
|
||||
|
|
Loading…
Reference in a new issue