gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet-core: add more error i


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: add more error info to observability events
Date: Tue, 16 Jul 2024 20:18:03 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 039ad74c8 wallet-core: add more error info to observability events
039ad74c8 is described below

commit 039ad74c8072ced8d2769b7753cac0aeb9be5ea0
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jul 16 20:17:59 2024 +0200

    wallet-core: add more error info to observability events
---
 packages/taler-util/src/notifications.ts              | 1 +
 packages/taler-wallet-core/src/observable-wrappers.ts | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/packages/taler-util/src/notifications.ts 
b/packages/taler-util/src/notifications.ts
index e2798e2ea..c3e0070bc 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -181,6 +181,7 @@ export type ObservabilityEvent =
       type: ObservabilityEventType.DbQueryFinishError;
       name: string;
       location: string;
+      error: TalerErrorDetail;
     }
   | {
       type: ObservabilityEventType.RequestStart;
diff --git a/packages/taler-wallet-core/src/observable-wrappers.ts 
b/packages/taler-wallet-core/src/observable-wrappers.ts
index 717de41ca..e26fac638 100644
--- a/packages/taler-wallet-core/src/observable-wrappers.ts
+++ b/packages/taler-wallet-core/src/observable-wrappers.ts
@@ -23,6 +23,7 @@
  */
 import { IDBDatabase } from "@gnu-taler/idb-bridge";
 import {
+  getErrorDetailFromException,
   ObservabilityContext,
   ObservabilityEventType,
 } from "@gnu-taler/taler-util";
@@ -161,6 +162,7 @@ export class ObservableDbAccess<StoreMap> implements 
DbAccess<StoreMap> {
         type: ObservabilityEventType.DbQueryFinishError,
         name: "<unknown>",
         location,
+        error: getErrorDetailFromException(e),
       });
       throw e;
     }
@@ -193,6 +195,7 @@ export class ObservableDbAccess<StoreMap> implements 
DbAccess<StoreMap> {
         type: ObservabilityEventType.DbQueryFinishError,
         name: options.label ?? "<unknown>",
         location,
+        error: getErrorDetailFromException(e),
       });
       throw e;
     }
@@ -224,6 +227,7 @@ export class ObservableDbAccess<StoreMap> implements 
DbAccess<StoreMap> {
         type: ObservabilityEventType.DbQueryFinishError,
         name: opts.label ?? "<unknown>",
         location,
+        error: getErrorDetailFromException(e),
       });
       throw e;
     }
@@ -255,6 +259,7 @@ export class ObservableDbAccess<StoreMap> implements 
DbAccess<StoreMap> {
         type: ObservabilityEventType.DbQueryFinishError,
         name: opts.label ?? "<unknown>",
         location,
+        error: getErrorDetailFromException(e),
       });
       throw e;
     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]