diff --git a/src/index.js b/src/index.js index fe6fe274cf82374d7ac3659a2d2b7b7081630516..8539428800bc3651c519d89cad5d14986d9b42ee 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')