@instana/shared-metrics
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -6,2 +6,10 @@ # Change Log | ||
## 2.6.2 (2022-08-17) | ||
**Note:** Version bump only for package @instana/shared-metrics | ||
## [2.6.1](https://github.com/instana/nodejs/compare/v2.6.0...v2.6.1) (2022-08-09) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@instana/shared-metrics", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Internal metrics plug-in package for Node.js monitoring with Instana", | ||
@@ -70,3 +70,3 @@ "author": { | ||
"dependencies": { | ||
"@instana/core": "2.6.1", | ||
"@instana/core": "2.6.2", | ||
"detect-libc": "^1.0.3", | ||
@@ -86,3 +86,3 @@ "event-loop-lag": "^1.4.0", | ||
}, | ||
"gitHead": "6910adcc568af60c1f648abc816daff8ff0bccdb" | ||
"gitHead": "14403f521e832904e6aff83f873ef90a2f8ded51" | ||
} |
@@ -23,4 +23,4 @@ /* | ||
const MAX_ATTEMPTS = 60; | ||
const DELAY = 1000; | ||
exports.MAX_ATTEMPTS = 60; | ||
exports.DELAY = 1000; | ||
let attempts = 0; | ||
@@ -30,14 +30,16 @@ | ||
attempts++; | ||
applicationUnderMonitoring.getMainPackageJsonStartingAtMainModule((err, packageJson) => { | ||
if (err) { | ||
return logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack); | ||
} else if (!packageJson && attempts < MAX_ATTEMPTS) { | ||
} else if (!packageJson && attempts < exports.MAX_ATTEMPTS) { | ||
logger.debug('Main package.json could not be found. Will try again later.'); | ||
setTimeout(exports.activate, DELAY).unref(); | ||
setTimeout(exports.activate, exports.DELAY).unref(); | ||
return; | ||
} else if (!packageJson) { | ||
if (process.mainModule) { | ||
if (require.main) { | ||
// @ts-ignore | ||
exports.currentPayload = process.mainModule.filename; | ||
exports.currentPayload = require.main.filename; | ||
} | ||
return logger.warn( | ||
@@ -54,1 +56,7 @@ `Main package.json could not be found. This Node.js app will be labeled "${ | ||
}; | ||
exports.reset = () => { | ||
exports.currentPayload = undefined; | ||
exports.MAX_ATTEMPTS = 60; | ||
exports.DELAY = 1000; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
634052
1451
+ Added@instana/core@2.6.2(transitive)
- Removed@instana/core@2.6.1(transitive)
Updated@instana/core@2.6.2