measure decryption time

This commit is contained in:
burnettk 2023-03-07 23:50:32 -05:00
parent d13001efff
commit d45b9d1ff5
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ class ServiceTaskDelegate:
if value.startswith(secret_prefix): if value.startswith(secret_prefix):
key = value.removeprefix(secret_prefix) key = value.removeprefix(secret_prefix)
secret = SecretService.get_secret(key) 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:" file_prefix = "file:"
if value.startswith(file_prefix): if value.startswith(file_prefix):