@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.mjs
CHANGED
@@ -427,7 +427,7 @@ var OpenTelemetryCollector = class {
|
|
427
427
|
return this.metrics[metricId];
|
428
428
|
}
|
429
429
|
};
|
430
|
-
dotenv.config({ path: getEnvVar("
|
430
|
+
dotenv.config({ path: getEnvVar("DOTENV_FILE_PATH") });
|
431
431
|
new NodeSDK({
|
432
432
|
resource: resourceFromAttributes({
|
433
433
|
[ATTR_SERVICE_NAME2]: getEnvVar("OTEL_SERVICE_NAME")
|
@@ -1320,15 +1320,14 @@ var ForklaunchExpressLikeApplication = class extends ForklaunchExpressLikeRouter
|
|
1320
1320
|
this.openTelemetryCollector = openTelemetryCollector;
|
1321
1321
|
this.appOptions = appOptions;
|
1322
1322
|
process.on("uncaughtException", (err) => {
|
1323
|
-
this.openTelemetryCollector.log("error",
|
1324
|
-
err
|
1325
|
-
});
|
1323
|
+
this.openTelemetryCollector.log("error", `Uncaught exception: ${err}`);
|
1326
1324
|
process.exit(1);
|
1327
1325
|
});
|
1328
1326
|
process.on("unhandledRejection", (reason) => {
|
1329
|
-
this.openTelemetryCollector.log(
|
1330
|
-
|
1331
|
-
|
1327
|
+
this.openTelemetryCollector.log(
|
1328
|
+
"error",
|
1329
|
+
`Unhandled rejection: ${reason}`
|
1330
|
+
);
|
1332
1331
|
process.exit(1);
|
1333
1332
|
});
|
1334
1333
|
process.on("exit", () => {
|