Skip to content

Feature request: add last_successful_statement metric #275

@juchiast

Description

@juchiast

Add last_successful_statement: Option<Instant> to Metrics.

Use case: can be used as a heuristic for connection health check. For example, don't do health check if last_successful_statement is less than 5 secs.

I tried last_used, but it's always 0ms right after you get the connection from the pool, therefore not useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-coreArea: Core / deadpoolquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions