Julien Ripouteau
julr.dev
Julien Ripouteau
@julr.dev
french freelance dev - @adonisjs.com core member
also, a ready-to-use Grafana dashboard and an article explaining how I set up my monitoring stack for my applications are coming soon !
November 30, 2024 at 5:27 PM
i fully rewrote the package for AdonisJS 6 with this new "collectors" system

this keeps things clean and makes it super easy to extend with your custom collectors or those contributed by other package maintainers
November 30, 2024 at 5:27 PM
As a side note: I would recommend the opposite of `no-return-await`. Always use `return await` instead

See: github.com/goldbergyoni...

Rule from typescript-eslint: typescript-eslint.io/rules/return...

TLDR: Improves stack trace and is as fast as directly returning the promise
Always prefer `return await` over `return` when returning a promise · Issue #737 · goldbergyoni/nodebestpractices
Because of how fast async stacktraces are implemented in v8 since Node 12 if promise would be returned from async function without been awaited, and then the promise would be rejected, the created ...
github.com
November 27, 2024 at 4:15 PM