diff --git a/api-service/src/services/otel/OTelService.ts b/api-service/src/services/otel/OTelService.ts index aa56425a..65186cbd 100644 --- a/api-service/src/services/otel/OTelService.ts +++ b/api-service/src/services/otel/OTelService.ts @@ -130,7 +130,7 @@ export class OTelService { public static generateOTelLog(auditLog: Record, severity: 'INFO' | 'WARN' | 'ERROR', logType?: string) { - if(config.otel && config.otel.enable){ + if((config.otel && _.toLower(config?.otel?.enable) === "true")){ const loggerInstance = this.loggerProvider.getLogger('obsrv-api-service'); const severityMapping: Record = {