diff --git a/index.js b/index.js index 96496db3e6b82e7adde632ac63ad8402e39b1d48..e31307c1882ac36dcfd6a9fcfb0eab2b32f44009 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')