public void OnConnectionCloseBefore(SqlConnection connection) { SqlConnectionCount .WithLabels(connection.DataSource, connection.Database) .Dec(); }
public void OnConnectionOpenAfter(SqlConnection connection) { SqlConnectionCount .WithLabels(connection.DataSource, connection.Database) .Inc(); }