measure decryption time

This commit is contained in:
burnettk 2023-03-07 23:50:32 -05:00
parent b92a371d07
commit f990f68b03
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ class ServiceTaskDelegate:
if value.startswith(secret_prefix):
key = value.removeprefix(secret_prefix)
secret = SecretService.get_secret(key)
return SecretService._decrypt(secret.value)
with sentry_sdk.start_span(op="task", description="decrypt_secret"):
return SecretService._decrypt(secret.value)
file_prefix = "file:"
if value.startswith(file_prefix):