diff options
author | Florian Dold <florian@dold.me> | 2024-02-27 23:23:36 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-27 23:23:36 +0100 |
commit | 6584d9e054faf9a927708f1f7f51bcbed7873afb (patch) | |
tree | 128dbdef9dbcbe7ed8e7aa90fb4e5fd2980e480c /packages/taler-util/src/notifications.ts | |
parent | 2c86a9ec76b60ad065da65e5d2adfd1a79189ae6 (diff) | |
download | wallet-core-6584d9e054faf9a927708f1f7f51bcbed7873afb.tar.gz wallet-core-6584d9e054faf9a927708f1f7f51bcbed7873afb.tar.bz2 wallet-core-6584d9e054faf9a927708f1f7f51bcbed7873afb.zip |
observability
Diffstat (limited to 'packages/taler-util/src/notifications.ts')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts index 9a62362e7..d0095dcd2 100644 --- a/packages/taler-util/src/notifications.ts +++ b/packages/taler-util/src/notifications.ts @@ -114,15 +114,18 @@ export enum ObservabilityEventType { HttpFetchFinishError = "http-fetch-finish-success", HttpFetchFinishSuccess = "http-fetch-finish-error", DbQueryStart = "db-query-start", - DbQueryCommit = "db-query-commit", - DbQueryAbort = "db-query-abort", + DbQueryFinishSuccess = "db-query-finish-error", + DbQueryFinishError = "db-query-finish-success", RequestStart = "request-start", RequestFinishSuccess = "request-finish-success", RequestFinishError = "request-finish-error", - StartTask = "start-task", - StopTask = "stop-task", - ResetTask = "reset-task", - TaskDependency = "task-dependency", + TaskStart = "start-task", + TaskStop = "stop-task", + TaskReset = "reset-task", + DeclareTaskDependency = "declare-task-dependency", + CryptoStart = "crypto-start", + CryptoFinishSuccess = "crypto-finish-success", + CryptoFinishError = "crypto-finish-error", } export type ObservabilityEvent = @@ -146,12 +149,12 @@ export type ObservabilityEvent = location: string; } | { - type: ObservabilityEventType.DbQueryCommit; + type: ObservabilityEventType.DbQueryFinishSuccess; name: string; location: string; } | { - type: ObservabilityEventType.DbQueryAbort; + type: ObservabilityEventType.DbQueryFinishError; name: string; location: string; } @@ -165,20 +168,32 @@ export type ObservabilityEvent = type: ObservabilityEventType.RequestFinishError; } | { - type: ObservabilityEventType.StartTask; + type: ObservabilityEventType.TaskStart; taskId: string; } | { - type: ObservabilityEventType.StopTask; + type: ObservabilityEventType.TaskStop; taskId: string; } | { - type: ObservabilityEventType.ResetTask; + type: ObservabilityEventType.TaskReset; taskId: string; } | { - type: ObservabilityEventType.TaskDependency; + type: ObservabilityEventType.DeclareTaskDependency; taskId: string; + } + | { + type: ObservabilityEventType.CryptoStart; + operation: string; + } + | { + type: ObservabilityEventType.CryptoFinishSuccess; + operation: string; + } + | { + type: ObservabilityEventType.CryptoFinishError; + operation: string; }; export interface BackupOperationErrorNotification { |