def _get_request_id():
 global _CURRENT_REQUEST_ID_HASH
 global _REQUEST_TIME
 request_id_hash = os.environ.get('REQUEST_ID_HASH', '')
 if (_CURRENT_REQUEST_ID_HASH != request_id_hash):
  _CURRENT_REQUEST_ID_HASH = request_id_hash
  _REQUEST_TIME = time.time()
 return str(int(((_FUTURE_TIME - _REQUEST_TIME) * 1000000)))

def _get_request_id ( ) : global _CURRENT_REQUEST_ID_HASH global _REQUEST_TIME request_id_hash = os . environ . get ( 'REQUEST_ID_HASH' , '' ) if ( _CURRENT_REQUEST_ID_HASH != request_id_hash ) : _CURRENT_REQUEST_ID_HASH = request_id_hash _REQUEST_TIME = time . time ( ) return str ( int ( ( ( _FUTURE_TIME - _REQUEST_TIME ) * 1000000 ) ) )
returns the request id bound to this request .