Skip to content

Commit

Permalink
fix: remove unused variable when trying to use tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
wallet77 committed Mar 19, 2018
1 parent e4e2923 commit 3aeeba0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ProcessUtils.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
module.exports = {
injectModules: function() {
console.log(process.env.pmx)
if (process.env.pmx !== 'false') {
const pmx = require('pmx');
console.log('-------------------------------------------------')
console.log(process.env.km_link,process.env.trace, process.env.deep_monitoring)
pmx.init({
transactions: (process.env.km_link === 'true' && (process.env.trace === 'true' || process.env.deep_monitoring === 'true')) || false,
transactions: (process.env.trace === 'true' || process.env.deep_monitoring === 'true') || false,
http: process.env.km_link === 'true' || false,
v8: process.env.v8 === 'true' || process.env.deep_monitoring === 'true' || false,
event_loop_dump: process.env.event_loop_inspector === 'true' || process.env.deep_monitoring === 'true' || false,
Expand Down

0 comments on commit 3aeeba0

Please sign in to comment.