Adding sentry tracking to issued with certificate deployment. (#978)
This commit is contained in:
parent
bef762e0d6
commit
f990ef27cf
|
@ -363,6 +363,7 @@ def update_destinations(target, value, initiator):
|
||||||
if target.private_key:
|
if target.private_key:
|
||||||
destination_plugin.upload(target.name, target.body, target.private_key, target.chain, value.options)
|
destination_plugin.upload(target.name, target.body, target.private_key, target.chain, value.options)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
sentry.captureException()
|
||||||
current_app.logger.exception(e)
|
current_app.logger.exception(e)
|
||||||
metrics.send('destination_upload_failure', 'counter', 1,
|
metrics.send('destination_upload_failure', 'counter', 1,
|
||||||
metric_tags={'certificate': target.name, 'destination': value.label})
|
metric_tags={'certificate': target.name, 'destination': value.label})
|
||||||
|
|
Loading…
Reference in New Issue