code: public Connection wrapConnection(Connection wrappedConnection) {
          Timer.Context lifeTimerContext = metricHelper.startConnectionLifeTimer();
          return newProxy(new ConnectionProxyHandler(wrappedConnection, this, lifeTimerContext));
      }
docs: Wrap a connection to monitor it.
  
  @param wrappedConnection Connection to wrap
  @return Wrapped connection