Skip to content

Conversation

@lukebakken
Copy link
Collaborator

A while back, @mkuratczyk noted that we keep the timestamp of when a connection is established in the connection state and related ETS table.

This PR uses the connected_at timestamp to calculate the duration of the connection, to make it easier to identify short-running connections via the log files.

@lukebakken lukebakken self-assigned this Sep 4, 2024
A while back, @mkuratczyk noted that we keep the timestamp of when a
connection is established in the connection state and related ETS table.

This PR uses the `connected_at` timestamp to calculate the duration of
the connection, to make it easier to identify short-running connections
via the log files.
@lukebakken lukebakken force-pushed the add-connection-duration-to-closing-message branch from e097f1f to 3440e37 Compare September 4, 2024 18:55
It cannot contain spaces like username,
virtual host and user-provided connection
name can.
This reverts commit 4299e1d.

It can contain spaces as it is formatted to human-readable
values such as '4m, 36s'
@michaelklishin
Copy link
Collaborator

Actually, the formatted value such as 4m, 36s can contain spaces so quoting makes sense. I have reverted my commit.

@michaelklishin michaelklishin added this to the 4.0.0 milestone Sep 5, 2024
@michaelklishin michaelklishin merged commit b9eebc4 into main Sep 5, 2024
@michaelklishin michaelklishin deleted the add-connection-duration-to-closing-message branch September 5, 2024 02:50
@michaelklishin michaelklishin changed the title Add connection duration to "closing AMQP connection..." msgs Add connection duration to "closing AMQP connection..." log messages Sep 5, 2024
michaelklishin added a commit that referenced this pull request Sep 5, 2024
Add connection duration to "closing AMQP connection..." log messages (backport #12215)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants