Skip to content

Add middleware for each request #4104

@Walfal

Description

@Walfal

I have found these related issues/pull requests

I’ve not found any related issue (for the moment)

Description

In order to track metrics for my app, would it be possible to have a middleware triggered for each request like Intercept for RBatis?

It would enable to count calls to db, ok and error responses, and the elapsed time for each request. This way, we could detect if there is a issue occuring.

Prefered solution

Something like RBatis::plugin::intercept

Is this a breaking change? Why or why not?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions