Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@supertenant/core / src / util / excludedFromInstrumentation.js
Size: Mime:
// (c) Copyright 2023 Supertenant Ltd. - all rights reserved.
// See LICENSE file in project root for license terms.
"use strict";const excludePattern=/^.*\/(?:npm(?:\.js)?|npm-cli(?:\.js)?|yarn(?:\.js)?|yarn\/lib\/cli(?:\.js)?)$/i;module.exports=exports=function(){var mainModule=process.argv[1],excludedFromInstrumentation="string"==typeof mainModule&&excludePattern.test(mainModule);return excludedFromInstrumentation&&(process.env.INSTANA_DEBUG||process.env.INSTANA_LOG_LEVEL&&("info"===process.env.INSTANA_LOG_LEVEL.toLowerCase()||"debug"===process.env.INSTANA_LOG_LEVEL.toLowerCase()))&&console.log(`[Instana] INFO: Not instrumenting process ${process.pid}: ${process.argv[0]} `+mainModule+' - this Node.js process seems to be npm or yarn. A child process started via "npm start" or "yarn start" _will_ be instrumented, but not npm or yarn itself.'),excludedFromInstrumentation};