From 6738b19541567c12609e01edf33559f5159488ea Mon Sep 17 00:00:00 2001
From: build-token <build-token>
Date: Fri, 2 Dec 2022 15:16:24 +0000
Subject: [PATCH] publish: add performance

generated from commit af27f1d452c6282de5c790a6f69d2c6a6ca07cda
---
 index.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 96496db..e31307c 100644
--- a/index.js
+++ b/index.js
@@ -75,7 +75,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 }),
+  ],
 })
 
 /**
@@ -201,6 +205,7 @@ async function start(fields, cozyParameters) {
       expirationDate: contractEndDate,
       inseeCode: user.inseeCode,
     })
+    // firstStartTransaction.finish()
   } else {
     log('info', 'Alternate start...')
     Sentry.captureMessage('Alternate start')
-- 
GitLab