mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
adding instana monitoring for fredy
This commit is contained in:
12
index.js
12
index.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user