adding instana monitoring for fredy

This commit is contained in:
Christian Kellner
2022-01-31 10:01:31 +01:00
parent 5e547baa76
commit bce0c57b02
5 changed files with 417 additions and 17 deletions

View File

@@ -1,3 +1,15 @@
/********OPTIONAL INSTANA INITIALIZATION BEGIN********/
//if you want to use Instana to monitor fredy, go to https://www.instana.com and
// try it yourself by signing up for a free trial
const { INSTANA_MONITORING } = process.env;
if (INSTANA_MONITORING != null && INSTANA_MONITORING === 'true') {
/* eslint-disable no-console */
console.debug('Starting Instana monitoring');
/* eslint-enable no-console */
require('@instana/collector')();
}
/********OPTIONAL INSTANA INITIALIZATION END********/
const fs = require('fs');
//if db folder does not exist, ensure to create it before loading anything else