@punks/backend-core 0.0.53 → 0.0.55
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/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -28434,6 +28434,9 @@ class InternalLogger {
|
|
|
28434
28434
|
return this.container.instances.filter((x) => x.options.enabled && x.options.level <= level);
|
|
28435
28435
|
}
|
|
28436
28436
|
serializeMeta(options, meta) {
|
|
28437
|
+
if (meta && typeof meta === "string") {
|
|
28438
|
+
return meta;
|
|
28439
|
+
}
|
|
28437
28440
|
const serializedMeta = meta
|
|
28438
28441
|
? jsonSerialize(meta, {
|
|
28439
28442
|
prettify: true,
|
|
@@ -28514,7 +28517,7 @@ class ConsoleLogger {
|
|
|
28514
28517
|
|
|
28515
28518
|
const createHttpTransportOptions = (settings) => ({
|
|
28516
28519
|
host: `http-intake.logs.${settings.datadog.site}`,
|
|
28517
|
-
path: `/api/v2/logs?dd-api-key=${settings.datadog.apiKey}
|
|
28520
|
+
path: `/api/v2/logs?dd-api-key=${settings.datadog.apiKey}&ddsource=nodejs&service=${settings.service.serviceName}`,
|
|
28518
28521
|
ssl: true,
|
|
28519
28522
|
});
|
|
28520
28523
|
const createLoggerInstance = (settings) => {
|