From d45b9d1ff5d13ca91980bc483c92bc366e3672df Mon Sep 17 00:00:00 2001 From: burnettk Date: Tue, 7 Mar 2023 23:50:32 -0500 Subject: [PATCH] measure decryption time --- .../src/spiffworkflow_backend/services/service_task_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py index 2701e97e5..11387fe13 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py @@ -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):