chore(sentry): tag dossier & procedure ids on dossier endpoints
This commit is contained in:
parent
8b962b4624
commit
707ea37b33
1 changed files with 7 additions and 1 deletions
|
@ -389,7 +389,13 @@ module Users
|
|||
end
|
||||
|
||||
def dossier
|
||||
@dossier ||= dossier_scope.find(params[:id] || params[:dossier_id])
|
||||
@dossier ||= dossier_scope.find(params[:id] || params[:dossier_id]).tap do |dossier|
|
||||
# Ease search & groupments by tags
|
||||
Sentry.configure_scope do |scope|
|
||||
scope.set_tags(procedure: dossier.procedure.id)
|
||||
scope.set_tags(dossier: dossier.id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def dossier_with_champs
|
||||
|
|
Loading…
Reference in a new issue