79242050

Date: 2024-12-01 17:00:00
Score: 1
Natty:
Report link

You could also split up the responsibility between the exception filter and the execution logic;

Performing some kind of :

try {
  await sayhello()
} catch (e)
  throw e // This will call the exception filter 
} finally {
  await writeToElastic()
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ofek rotem