Skip to content

Commit f5d5563

Browse files
committed
chore: updated error message when Node.js version is unsupported (#2179)
1 parent 0651e9e commit f5d5563

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

packages/aws-fargate/src/preactivate.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ if (nodeJsVersionCheck.isNodeJsTooOld()) {
1111
// eslint-disable-next-line no-console
1212
console.error(
1313
// eslint-disable-next-line max-len
14-
`The package @instana/aws-fargate requires at least Node.js ${nodeJsVersionCheck.minimumNodeJsVersion} but this process is ` +
15-
`running on Node.js ${process.version}. This Fargate container will not be monitored by Instana.` +
16-
'See https://www.ibm.com/docs/en/instana-observability/current?topic=agents-aws-fargate#versioning.'
14+
`The package @instana/aws-fargate requires at least Node.js ${nodeJsVersionCheck.minimumNodeJsVersion} ` +
15+
`but this process is running on Node.js ${process.version}. This Fargate container will ` +
16+
'not be monitored by Instana. For more information, see: ' +
17+
// eslint-disable-next-line max-len
18+
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-support-information#breaking-changes-in-nodejs-collector-upgrade'
1719
);
1820
return;
1921
}

packages/azure-container-services/src/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ const { esm, nodeJsVersionCheck } = require('@instana/core/src/util');
1313
if (nodeJsVersionCheck.isNodeJsTooOld()) {
1414
// eslint-disable-next-line no-console
1515
console.error(
16-
// eslint-disable-next-line max-len
17-
`The package @instana/azure-container-services requires at least Node.js ${nodeJsVersionCheck.minimumNodeJsVersion} but this` +
18-
`process is running on Node.js ${process.version}. This azure container service will not be monitored by Instana.`
16+
'The package @instana/azure-container-services requires at least Node.js ' +
17+
`${nodeJsVersionCheck.minimumNodeJsVersion} but this process is running on Node.js ${process.version}. ` +
18+
'This Azure Container Service will not be monitored by Instana. For more information, see: ' +
19+
// eslint-disable-next-line max-len
20+
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-support-information#breaking-changes-in-nodejs-collector-upgrade'
1921
);
2022
return;
2123
}

packages/collector/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ if (nodeJsVersionCheck.isNodeJsTooOld()) {
2525
console.error(
2626
// eslint-disable-next-line max-len
2727
`The package @instana/collector requires at least Node.js ${nodeJsVersionCheck.minimumNodeJsVersion} but this process is ` +
28-
`running on Node.js ${process.version}. This process will not be monitored by Instana.`
28+
`running on Node.js ${process.version}. This process will not be monitored by Instana. For more information, ` +
29+
// eslint-disable-next-line max-len
30+
'see: https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-support-information#breaking-changes-in-nodejs-collector-upgrade'
2931
);
3032

3133
// ESM default exports for TS

packages/google-cloud-run/src/preactivate.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ const { esm, nodeJsVersionCheck } = require('@instana/core/src/util');
1010
if (nodeJsVersionCheck.isNodeJsTooOld()) {
1111
// eslint-disable-next-line no-console
1212
console.error(
13-
// eslint-disable-next-line max-len
14-
`The package @instana/google-cloud-run requires at least Node.js ${nodeJsVersionCheck.minimumNodeJsVersion} but this process is ` +
15-
`running on Node.js ${process.version}. This Google Cloud Run service will not be monitored by Instana.` +
16-
'See https://www.ibm.com/docs/en/instana-observability/current?topic=agents-google-cloud-run#versioning.'
13+
`The package @instana/google-cloud-run requires at least Node.js ${nodeJsVersionCheck.minimumNodeJsVersion} ` +
14+
`but this process is running on Node.js ${process.version}. This Google Cloud Run service will not be ` +
15+
'monitored by Instana. For more information, see: ' +
16+
// eslint-disable-next-line max-len
17+
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-support-information#breaking-changes-in-nodejs-collector-upgrade'
1718
);
1819
return;
1920
}

packages/serverless-collector/src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ if (nodeJsVersionCheck.isNodeJsTooOld()) {
1111
console.error(
1212
// eslint-disable-next-line max-len
1313
`The package @instana/serverless-collector requires at least Node.js v${nodeJsVersionCheck.minimumNodeJsVersion} but this ` +
14-
`process is running on Node.js ${process.version}. This process will not be traced by Instana.`
14+
`process is running on Node.js ${process.version}. This process will not be traced by Instana. ` +
15+
'For more information, see: ' +
16+
// eslint-disable-next-line max-len
17+
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-support-information#breaking-changes-in-nodejs-collector-upgrade'
1518
);
1619
return;
1720
}

0 commit comments

Comments
 (0)