electric icon indicating copy to clipboard operation
electric copied to clipboard

Add tracing for connecting to postgres

Open KyleAMathews opened this issue 1 year ago • 3 comments

This is a difficult to debug area where both the server authors and users would like detailed information about what happened when a connection to postgres fails.

We should add a span for the connection process with all provided information and sub-spans for any interesting subroutines. And capture all errors.

KyleAMathews avatar Sep 22 '24 20:09 KyleAMathews

Could you clarify about the "span for the connection process"? Is it about tracing the connection initialisation, i.e. from the moment Electric opens a connection to Postgres and up until the point it either succeeds or fails?

alco avatar Sep 24 '24 01:09 alco

yeah exactly, the initialization. Also reconnects, retries, etc.

KyleAMathews avatar Sep 24 '24 01:09 KyleAMathews

We'll work on this once #1762 is in.

balegas avatar Oct 01 '24 08:10 balegas