Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hackDB();
instrumentMethods(Agent, Meteor);
instrumentHttp(Agent, WebApp);
instrumentSession(Agent, Session);
instrumentSubscription(Agent, Subscription);
instrumentAsync(Agent, Fibers);
instrumentDB(Agent, Meteor, MongoCursor);
startAgent.apply(Agent, args);
startMetrics(Agent);
Agent.logger.info('meteor-elastic-apm completed instrumenting');
} catch (e) {
Agent.logger.error('Could not start meteor-elastic-apm');
throw e;
}
});
} else {
instrumentSubscription(Agent, Subscription);
instrumentAsync(Agent, Fibers);
instrumentDB(Agent, Meteor, MongoCursor);
startAgent.apply(Agent, args);
startMetrics(Agent);
Agent.logger.info('meteor-elastic-apm completed instrumenting');
} catch (e) {
Agent.logger.error('Could not start meteor-elastic-apm');
throw e;
}
});
} else {
Agent.logger.warn('meteor-elastic-apm is not active');
}
};
});
Meteor.startup(() => {
try {
hackDB();
instrumentMethods(Agent, Meteor);
instrumentHttp(Agent, WebApp);
instrumentSession(Agent, Session);
instrumentSubscription(Agent, Subscription);
instrumentAsync(Agent, Fibers);
instrumentDB(Agent, Meteor, MongoCursor);
startAgent.apply(Agent, args);
startMetrics(Agent);
Agent.logger.info('meteor-elastic-apm completed instrumenting');
} catch (e) {
Agent.logger.error('Could not start meteor-elastic-apm');
throw e;
}
});
} else {