@lark-apaas/nestjs-logger 1.0.6-alpha.1 → 1.0.6-alpha.3

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.js CHANGED
@@ -9271,8 +9271,9 @@ var BasePinoLogger = class _BasePinoLogger {
9271
9271
  const sanitizedPayload = sanitizeValue(payload);
9272
9272
  const isTriggerLog = firstParam?.module === "trigger";
9273
9273
  const platformModule = isTriggerLog ? "trigger" : firstParam?.paas_attributes_module;
9274
+ const parentSpan = firstParam?.paas_parent_span;
9274
9275
  if (process.env.NODE_ENV === "development") {
9275
- if (platformModule && !isTriggerLog) {
9276
+ if (platformModule) {
9276
9277
  return;
9277
9278
  }
9278
9279
  if (messageText) {
@@ -9289,13 +9290,13 @@ var BasePinoLogger = class _BasePinoLogger {
9289
9290
  this.observableService.log(level, finalMessage ?? "", {
9290
9291
  ...payload,
9291
9292
  module: platformModule
9292
- });
9293
+ }, parentSpan);
9293
9294
  } else {
9294
9295
  const reportMessage = this.processLogParams([
9295
9296
  message,
9296
9297
  ...optionalParams
9297
9298
  ]);
9298
- this.observableService.log(level, reportMessage, {});
9299
+ this.observableService.log(level, reportMessage, {}, parentSpan);
9299
9300
  }
9300
9301
  }
9301
9302
  }