xcally-nest-library 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/modules/logger/pino/logger.module.d.ts +0 -1
- package/dist/src/modules/logger/pino/logger.module.js +0 -23
- package/dist/src/modules/logger/pino/logger.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -3
- package/src/modules/logger/pino/logger.module.ts +1 -38
@@ -12,25 +12,6 @@ const common_1 = require("@nestjs/common");
|
|
12
12
|
const config_1 = require("@nestjs/config");
|
13
13
|
const nestjs_pino_1 = require("nestjs-pino");
|
14
14
|
const logger_service_1 = require("./logger.service");
|
15
|
-
require("dotenv/config");
|
16
|
-
const options = {
|
17
|
-
resourceAttributes: {
|
18
|
-
'service.name': process.env.npm_package_name || 'unknown',
|
19
|
-
},
|
20
|
-
logRecordProcessorOptions: [
|
21
|
-
{
|
22
|
-
recordProcessorType: 'batch',
|
23
|
-
exporterOptions: {
|
24
|
-
protocol: 'http',
|
25
|
-
httpExporterOptions: {
|
26
|
-
url: new URL('v1/logs', process.env.OTLP_HTTP_URL || 'http://localhost:4318/').toString(),
|
27
|
-
},
|
28
|
-
},
|
29
|
-
},
|
30
|
-
],
|
31
|
-
loggerName: (process.env.npm_package_name || 'unknown') + '-logger',
|
32
|
-
serviceVersion: process.env.npm_package_version || 'unknown',
|
33
|
-
};
|
34
15
|
let LoggerModule = LoggerModule_1 = class LoggerModule {
|
35
16
|
static forRoot() {
|
36
17
|
return {
|
@@ -51,10 +32,6 @@ let LoggerModule = LoggerModule_1 = class LoggerModule {
|
|
51
32
|
},
|
52
33
|
transport: {
|
53
34
|
targets: [
|
54
|
-
{
|
55
|
-
target: 'pino-opentelemetry-transport',
|
56
|
-
options,
|
57
|
-
},
|
58
35
|
{
|
59
36
|
level: 'debug',
|
60
37
|
target: 'pino-pretty',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger.module.js","sourceRoot":"","sources":["../../../../../src/modules/logger/pino/logger.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,2CAA6D;AAC7D,6CAA+D;AAC/D,qDAAiD;
|
1
|
+
{"version":3,"file":"logger.module.js","sourceRoot":"","sources":["../../../../../src/modules/logger/pino/logger.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,2CAA6D;AAC7D,6CAA+D;AAC/D,qDAAiD;AAI1C,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACvB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,MAAM,EAAE,cAAY;YACpB,SAAS,EAAE,CAAC,8BAAa,CAAC;YAC1B,OAAO,EAAE,CAAC,8BAAa,CAAC;YACxB,OAAO,EAAE;gBACP,0BAAgB,CAAC,YAAY,CAAC;oBAC5B,OAAO,EAAE,CAAC,qBAAY,CAAC;oBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;oBACvB,UAAU,EAAE,KAAK,EAAE,MAAqB,EAAE,EAAE;wBAC1C,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,iBAAiB,CAAC;wBACtE,OAAO;4BACL,QAAQ,EAAE;gCACR,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,MAAM;gCAWxC,MAAM,EAAE;oCACN,KAAK,EAAE,CAAC,oBAAoB,EAAE,2BAA2B,CAAC;iCAC3D;gCACD,SAAS,EAAE;oCACT,OAAO,EAAE;wCACP;4CACE,KAAK,EAAE,OAAO;4CACd,MAAM,EAAE,aAAa;4CACrB,OAAO,EAAE;gDACP,QAAQ,EAAE,IAAI;6CACf;yCACF;wCAQD;4CACE,KAAK,EAAE,MAAM;4CACb,MAAM,EAAE,WAAW;4CACnB,OAAO,EAAE;gDACP,WAAW,EAAE,UAAU,WAAW,WAAW;gDAC7C,KAAK,EAAE,IAAI;gDACX,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;6CAC7D;yCACF;qCACF;iCACF;6BAKF;yBACF,CAAC;oBACJ,CAAC;iBACF,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAlEY,oCAAY;uBAAZ,YAAY;IAFxB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAkExB"}
|