@lark-apaas/nestjs-logger 1.0.14 → 1.0.16
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/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -9224,6 +9224,12 @@ var BasePinoLogger = class _BasePinoLogger {
|
|
|
9224
9224
|
user_id: requestState?.userId ?? null,
|
|
9225
9225
|
app_id: requestState?.appId ?? null,
|
|
9226
9226
|
tenant_id: requestState?.tenantId ?? null,
|
|
9227
|
+
...requestState?.refererPath ? {
|
|
9228
|
+
referer_path: requestState.refererPath
|
|
9229
|
+
} : {},
|
|
9230
|
+
...requestState?.observabilityApi ? {
|
|
9231
|
+
api: requestState.observabilityApi
|
|
9232
|
+
} : {},
|
|
9227
9233
|
pid: process.pid,
|
|
9228
9234
|
...sanitizeValue(meta)
|
|
9229
9235
|
};
|
|
@@ -9269,6 +9275,12 @@ var BasePinoLogger = class _BasePinoLogger {
|
|
|
9269
9275
|
user_id: requestState?.userId ?? null,
|
|
9270
9276
|
app_id: requestState?.appId ?? null,
|
|
9271
9277
|
tenant_id: requestState?.tenantId ?? null,
|
|
9278
|
+
...requestState?.refererPath ? {
|
|
9279
|
+
referer_path: requestState.refererPath
|
|
9280
|
+
} : {},
|
|
9281
|
+
...requestState?.observabilityApi ? {
|
|
9282
|
+
api: requestState.observabilityApi
|
|
9283
|
+
} : {},
|
|
9272
9284
|
pid: process.pid,
|
|
9273
9285
|
...processedExtra
|
|
9274
9286
|
};
|
|
@@ -9659,8 +9671,6 @@ duration_ms=${durationMs}`, "HTTPTraceInterceptor");
|
|
|
9659
9671
|
this.appLogger.log(reportData, {
|
|
9660
9672
|
paas_attributes_module: "app_server",
|
|
9661
9673
|
source_type: "platform",
|
|
9662
|
-
referer_path: refererPath ?? "",
|
|
9663
|
-
api,
|
|
9664
9674
|
duration_ms: durationMs
|
|
9665
9675
|
}, "HTTPTraceInterceptor");
|
|
9666
9676
|
}
|
|
@@ -9670,8 +9680,6 @@ duration_ms=${durationMs}`, "HTTPTraceInterceptor");
|
|
|
9670
9680
|
this.appLogger.error((0, import_util.format)("HTTP request exception\nmethod=%s url=%s\nerror=%o", req.method, req.url, error), {
|
|
9671
9681
|
paas_attributes_module: "app_server",
|
|
9672
9682
|
source_type: "platform",
|
|
9673
|
-
referer_path: refererPath ?? "",
|
|
9674
|
-
api,
|
|
9675
9683
|
duration_ms: durationMs
|
|
9676
9684
|
}, "HTTPTraceInterceptor");
|
|
9677
9685
|
throw error;
|