Skip to content

opentelemetry-instrumentation-pg: capture pg pool release events #1976

@brendarearden

Description

@brendarearden

Is your feature request related to a problem? Please describe

When looking at tracing, I can easily see pg-pool.connect but I do not see when a client gets released. This can be frustrating when trying to quickly troubleshoot where in a service an issue is occurring - i.e is the client getting stuck and not releasing for some reason. I do keep track of idle clients separately so if they were not getting disconnected I would see the idle value go up, but it would be nice to see the full lifecycle of pg-pool.connect through pg-pool.release when viewing tracing for a specific operation.

Describe the solution you'd like to see

I see a pg-pool.release span when a client gets released in the same way I see a pg-pool.connect span.

Describe alternatives you've considered

Tracking idle clients separately.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions