Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
}