@forklaunch/core 0.9.13 → 0.9.15
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/lib/src/http/index.js
CHANGED
@@ -493,7 +493,7 @@ var OpenTelemetryCollector = class {
|
|
493
493
|
return this.metrics[metricId];
|
494
494
|
}
|
495
495
|
};
|
496
|
-
import_dotenv.default.config({ path: (0, import_common3.getEnvVar)("
|
496
|
+
import_dotenv.default.config({ path: (0, import_common3.getEnvVar)("DOTENV_FILE_PATH") });
|
497
497
|
new import_sdk_node.NodeSDK({
|
498
498
|
resource: (0, import_resources.resourceFromAttributes)({
|
499
499
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: (0, import_common3.getEnvVar)("OTEL_SERVICE_NAME")
|
@@ -1384,15 +1384,14 @@ var ForklaunchExpressLikeApplication = class extends ForklaunchExpressLikeRouter
|
|
1384
1384
|
this.openTelemetryCollector = openTelemetryCollector;
|
1385
1385
|
this.appOptions = appOptions;
|
1386
1386
|
process.on("uncaughtException", (err) => {
|
1387
|
-
this.openTelemetryCollector.log("error",
|
1388
|
-
err
|
1389
|
-
});
|
1387
|
+
this.openTelemetryCollector.log("error", `Uncaught exception: ${err}`);
|
1390
1388
|
process.exit(1);
|
1391
1389
|
});
|
1392
1390
|
process.on("unhandledRejection", (reason) => {
|
1393
|
-
this.openTelemetryCollector.log(
|
1394
|
-
|
1395
|
-
|
1391
|
+
this.openTelemetryCollector.log(
|
1392
|
+
"error",
|
1393
|
+
`Unhandled rejection: ${reason}`
|
1394
|
+
);
|
1396
1395
|
process.exit(1);
|
1397
1396
|
});
|
1398
1397
|
process.on("exit", () => {
|