docs: def log_request_success(self, method, full_url, path, body, status_code, response, duration):
          """ Log a successful API call.  """
  
          if body and not isinstance(body, dict):
              body = body.decode('utf-8')
  
          logger.info(
              '%s %s [status:%s request:%.3fs]', method, full_url,
              status_code, duration
          )
          logger.debug('> %s', body)
          logger.debug('< %s', response)
  
          if tracer.isEnabledFor(logging.INFO):
              if self.url_prefix:
                  path = path.replace(self.url_prefix, '', 1)
              tracer.info("curl -X%s 'http://localhost:8047%s' -d '%s'", method, path,
                          self._pretty_json(body) if body else '')
  
          if tracer.isEnabledFor(logging.DEBUG):
              tracer.debug('#[%s] (%.3fs)\n#%s', status_code, duration,
                           self._pretty_json(response).replace('\n', '\n#') if response else '')