From 03c6956521bb2eb1a61e2f0e4a325810edaee81e Mon Sep 17 00:00:00 2001 From: Pierre Ecarlat <pecarlat@grandlyon.com> Date: Mon, 29 Jul 2024 12:32:22 +0000 Subject: [PATCH] feat(SAU): Add the instance name as a Sentry tag --- src/instrument.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/instrument.js b/src/instrument.js index abe2e6e..2afdbd0 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -3,7 +3,8 @@ const { version } = require('../package.json') const { isDev } = require('./helpers/env') Sentry.init({ - dsn: 'https://fa503fe00434433f805d1c715999b7f5@grandlyon.errors.cozycloud.cc/3', + dsn: + 'https://fa503fe00434433f805d1c715999b7f5@grandlyon.errors.cozycloud.cc/3', // Set tracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. @@ -16,3 +17,4 @@ Sentry.init({ }) Sentry.setTag('method', 'TIERS-DIRECT') +Sentry.setTag('instance', process.env.COZY_URL) -- GitLab