From fcc12b04b3eb478586f32cfdb88ddbc46e791d53 Mon Sep 17 00:00:00 2001 From: GalTidhar <39020298+tatarco@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:44:10 +0200 Subject: [PATCH] feat(api): Add api exception mapping (#6601) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Biswajeet Das Co-authored-by: Sokratis Vidros Co-authored-by: Paweł Tymczuk Co-authored-by: Richard Fontein <32132657+rifont@users.noreply.github.com> Co-authored-by: Dima Grossman Co-authored-by: Himanshu Garg Co-authored-by: Sokratis Vidros Co-authored-by: Gali Ainouz Baum Co-authored-by: Adam Chmara --- .idea/nx-angular-config.xml | 2 +- .idea/runConfigurations/API.xml | 6 +- apps/api/package.json | 9 +- apps/api/src/app.module.ts | 20 +- .../src/app/events/e2e/trigger-event.e2e.ts | 8 +- .../src/app/layouts/e2e/create-layout.e2e.ts | 10 +- .../src/app/layouts/e2e/delete-layout.e2e.ts | 20 +- .../src/app/layouts/e2e/update-layout.e2e.ts | 20 +- .../app/shared/framework/idempotency.e2e.ts | 33 +- .../src/app/testing/product-feature.e2e.ts | 3 +- apps/api/src/bootstrap.ts | 28 +- apps/api/src/exception-filter.ts | 102 +++ apps/api/src/instrument.ts | 24 + apps/inbound-mail/package.json | 7 +- apps/inbound-mail/src/instrument.ts | 28 + apps/inbound-mail/src/main.ts | 18 +- apps/webhook/package.json | 7 +- apps/webhook/src/app.module.ts | 9 +- apps/webhook/src/bootstrap.ts | 24 +- apps/webhook/src/instrument.ts | 27 + apps/worker/package.json | 6 +- apps/worker/src/app.module.ts | 23 +- apps/worker/src/bootstrap.ts | 25 +- apps/worker/src/instrument.ts | 13 + apps/ws/package.json | 7 +- apps/ws/src/app.module.ts | 9 +- apps/ws/src/bootstrap.ts | 12 +- apps/ws/src/instrument.ts | 27 + libs/application-generic/package.json | 2 +- pnpm-lock.yaml | 851 +++++++++++++++--- 30 files changed, 1055 insertions(+), 325 deletions(-) create mode 100644 apps/api/src/exception-filter.ts create mode 100644 apps/api/src/instrument.ts create mode 100644 apps/inbound-mail/src/instrument.ts create mode 100644 apps/webhook/src/instrument.ts create mode 100644 apps/worker/src/instrument.ts create mode 100644 apps/ws/src/instrument.ts diff --git a/.idea/nx-angular-config.xml b/.idea/nx-angular-config.xml index f7b1f29c249..977a418d1fe 100644 --- a/.idea/nx-angular-config.xml +++ b/.idea/nx-angular-config.xml @@ -5,4 +5,4 @@ - + \ No newline at end of file diff --git a/.idea/runConfigurations/API.xml b/.idea/runConfigurations/API.xml index 8ba789fdc20..90548b97d80 100644 --- a/.idea/runConfigurations/API.xml +++ b/.idea/runConfigurations/API.xml @@ -6,7 +6,9 @@