@forge/storage

1.6.0-next.01.6.0-next.1
out/global-storage.js
~out/global-storage.jsModified
+3
Index: package/out/global-storage.js
===================================================================
--- package/out/global-storage.js
+++ package/out/global-storage.js
@@ -128,8 +128,11 @@
         return response;
     }
     async wrapInMetric(store, operation, encrypted, fn) {
         const metrics = this.getMetrics();
+        if (!metrics) {
+            return await fn();
+        }
         const timer = metrics
             .timing('forge.runtime.storage.operation.latency', { store, operation, encrypted: String(encrypted) })
             .measure();
         try {