diff --git a/packages/opentelemetry/src/lib/opentelemetry.module.ts b/packages/opentelemetry/src/lib/opentelemetry.module.ts index 4d0f728..6fb39b1 100644 --- a/packages/opentelemetry/src/lib/opentelemetry.module.ts +++ b/packages/opentelemetry/src/lib/opentelemetry.module.ts @@ -19,6 +19,11 @@ export class OpenTelemetryModule { ConfigModule.forFeature(config), LoggerModule.forRoot({ pinoHttp: { + base: null, + formatters: { + level: (label: string) => ({ level: label }), + }, + timestamp: () => `,"time":"${new Date().toISOString()}"`, redact: { paths: ['req.headers.authorization', 'req.headers.cookie'], },