@hypertestco/node-sdk-v3 0.0.1-80 → 0.0.1-81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +12 -10
- package/index.mjs +12 -10
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -115005,7 +115005,7 @@ var opentelemetry = __toESM(require_src30());
|
|
|
115005
115005
|
var import_register = __toESM(require_register());
|
|
115006
115006
|
|
|
115007
115007
|
// ../../package.json
|
|
115008
|
-
var version = "0.0.1-
|
|
115008
|
+
var version = "0.0.1-81";
|
|
115009
115009
|
|
|
115010
115010
|
// ../utils/syncSleep/index.ts
|
|
115011
115011
|
function synchronousBlock(seconds) {
|
|
@@ -185900,18 +185900,20 @@ function alreadyRequiredModules() {
|
|
|
185900
185900
|
}
|
|
185901
185901
|
return alreadyRequiredModuleNames;
|
|
185902
185902
|
}
|
|
185903
|
-
async function monitorOtelCollectorStatus(exporterUrl) {
|
|
185903
|
+
async function monitorOtelCollectorStatus(exporterUrl, shouldLog = true) {
|
|
185904
185904
|
const { accessible } = await pingOtelCollector(exporterUrl);
|
|
185905
185905
|
if (accessible) {
|
|
185906
185906
|
debug19("Hypertest otel collector is accessible");
|
|
185907
185907
|
} else {
|
|
185908
|
-
|
|
185909
|
-
|
|
185910
|
-
|
|
185911
|
-
|
|
185912
|
-
|
|
185913
|
-
|
|
185914
|
-
|
|
185908
|
+
if (shouldLog) {
|
|
185909
|
+
console.error(`
|
|
185910
|
+
ERROR: Hypertest otel collector is not accessible.
|
|
185911
|
+
1. Please check the exporterUrl (${exporterUrl}): in initialize call.
|
|
185912
|
+
2. Ensure you have network access to connectivity to ${exporterUrl} by using telnet.
|
|
185913
|
+
3. Check if Hypertest otel collector is running by using telnet or similar commands from a different network/machine.
|
|
185914
|
+
`);
|
|
185915
|
+
}
|
|
185916
|
+
setTimeout(() => monitorOtelCollectorStatus(exporterUrl), 100 * 1e3);
|
|
185915
185917
|
}
|
|
185916
185918
|
}
|
|
185917
185919
|
var initialize = (htConfig) => {
|
|
@@ -185931,7 +185933,7 @@ var initialize = (htConfig) => {
|
|
|
185931
185933
|
}
|
|
185932
185934
|
if (IS_RECORD_MODE) {
|
|
185933
185935
|
if (htConfig == null ? void 0 : htConfig.exporterUrl) {
|
|
185934
|
-
monitorOtelCollectorStatus(htConfig.exporterUrl);
|
|
185936
|
+
monitorOtelCollectorStatus(htConfig.exporterUrl, false);
|
|
185935
185937
|
}
|
|
185936
185938
|
applyCoverageProxy();
|
|
185937
185939
|
startLiveCodeCoverage();
|
package/index.mjs
CHANGED
|
@@ -122487,7 +122487,7 @@ import fs2 from "fs";
|
|
|
122487
122487
|
import path3 from "path";
|
|
122488
122488
|
|
|
122489
122489
|
// ../../package.json
|
|
122490
|
-
var version = "0.0.1-
|
|
122490
|
+
var version = "0.0.1-81";
|
|
122491
122491
|
|
|
122492
122492
|
// ../utils/syncSleep/index.ts
|
|
122493
122493
|
function synchronousBlock(seconds) {
|
|
@@ -193413,18 +193413,20 @@ function alreadyRequiredModules() {
|
|
|
193413
193413
|
}
|
|
193414
193414
|
return alreadyRequiredModuleNames;
|
|
193415
193415
|
}
|
|
193416
|
-
async function monitorOtelCollectorStatus(exporterUrl) {
|
|
193416
|
+
async function monitorOtelCollectorStatus(exporterUrl, shouldLog = true) {
|
|
193417
193417
|
const { accessible } = await pingOtelCollector(exporterUrl);
|
|
193418
193418
|
if (accessible) {
|
|
193419
193419
|
debug20("Hypertest otel collector is accessible");
|
|
193420
193420
|
} else {
|
|
193421
|
-
|
|
193422
|
-
|
|
193423
|
-
|
|
193424
|
-
|
|
193425
|
-
|
|
193426
|
-
|
|
193427
|
-
|
|
193421
|
+
if (shouldLog) {
|
|
193422
|
+
console.error(`
|
|
193423
|
+
ERROR: Hypertest otel collector is not accessible.
|
|
193424
|
+
1. Please check the exporterUrl (${exporterUrl}): in initialize call.
|
|
193425
|
+
2. Ensure you have network access to connectivity to ${exporterUrl} by using telnet.
|
|
193426
|
+
3. Check if Hypertest otel collector is running by using telnet or similar commands from a different network/machine.
|
|
193427
|
+
`);
|
|
193428
|
+
}
|
|
193429
|
+
setTimeout(() => monitorOtelCollectorStatus(exporterUrl), 100 * 1e3);
|
|
193428
193430
|
}
|
|
193429
193431
|
}
|
|
193430
193432
|
var initialize2 = (htConfig) => {
|
|
@@ -193444,7 +193446,7 @@ var initialize2 = (htConfig) => {
|
|
|
193444
193446
|
}
|
|
193445
193447
|
if (IS_RECORD_MODE) {
|
|
193446
193448
|
if (htConfig == null ? void 0 : htConfig.exporterUrl) {
|
|
193447
|
-
monitorOtelCollectorStatus(htConfig.exporterUrl);
|
|
193449
|
+
monitorOtelCollectorStatus(htConfig.exporterUrl, false);
|
|
193448
193450
|
}
|
|
193449
193451
|
applyCoverageProxy();
|
|
193450
193452
|
startLiveCodeCoverage();
|