chore(sentry): use "procedure" tag everywhere for a better debug experience

This commit is contained in:
Colin Darie 2023-03-08 13:48:44 +01:00
parent 126819939b
commit d20114f978
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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']