How to use the elastic-apm-node.logger function in elastic-apm-node

To help you get started, we’ve selected a few elastic-apm-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kschingiz / meteor-elastic-apm / meteor-elastic-apm.js View on Github external
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 {
github kschingiz / meteor-elastic-apm / meteor-elastic-apm.js View on Github external
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');
    }
  };
});
github kschingiz / meteor-elastic-apm / meteor-elastic-apm.js View on Github external
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 {