Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instana/shared-metrics

Package Overview
Dependencies
Maintainers
6
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instana/shared-metrics - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

8

CHANGELOG.md

@@ -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 @@

6

package.json
{
"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;
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc