You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it intended for errors that originate in router.param() callbacks to be observable by the diagnostic channel? ref #196
Currently with this code below, which admittedly is a bit contrived, the error originating in validateId would be attributed to the forwarding error handler:
It seems that router.param() callbacks bypass the instrumented layer handlers, so their errors aren't observed until a subsequent error handler forwards them via next(err).
I'm wondering whether we should capture these errors at their origin, or at least avoid incorrectly attributing them to a subsequent handler.
Activity
[-]Error tracing on `req.params`[/-][+]Error tracing on `router.param`[/+]bjohansebas commentedon Oct 23, 2026
cc: @logaretm
fix: trace parameter callbacks and preserve error attribution (#215)