How to use the @instana/serverless.backendConnector.init function in @instana/serverless

To help you get started, we’ve selected a few @instana/serverless 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 instana / nodejs-sensor / packages / aws-lambda / src / wrapper.js View on Github external
function init(event, arnInfo, _config) {
  /* eslint-disable dot-notation */
  config = _config || {};

  if (config.logger) {
    logger = config.logger;
  } else if (config.level || process.env['INSTANA_LOG_LEVEL']) {
    logger.setLevel(config.level || process.env['INSTANA_LOG_LEVEL']);
  }
  identityProvider.init(arnInfo);
  backendConnector.init(identityProvider, logger);

  instanaCore.init(config, backendConnector, identityProvider);

  metrics.init(config);
  metrics.activate();
  tracing.activate();
}

@instana/serverless

Internal utility package for serverless Node.js tracing and monitoring with Instana

MIT
Latest version published 3 days ago

Package Health Score

84 / 100
Full package analysis