From af27f1d452c6282de5c790a6f69d2c6a6ca07cda Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Fri, 2 Dec 2022 16:14:18 +0100
Subject: [PATCH] add performance

---
 src/index.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/index.js b/src/index.js
index fe6fe27..8539428 100644
--- a/src/index.js
+++ b/src/index.js
@@ -70,7 +70,11 @@ Sentry.init({
   tracesSampleRate: 1.0,
   release: version,
   environment: isDev() ? 'development' : 'production',
-  debug: true,
+  debug: isDev(),
+  integrations: [
+    // enable HTTP calls tracing
+    new Sentry.Integrations.Http({ tracing: true }),
+  ],
 })
 
 /**
@@ -196,6 +200,7 @@ async function start(fields, cozyParameters) {
       expirationDate: contractEndDate,
       inseeCode: user.inseeCode,
     })
+    // firstStartTransaction.finish()
   } else {
     log('info', 'Alternate start...')
     Sentry.captureMessage('Alternate start')
-- 
GitLab