* add api key initial commit * add unit test * modify unit test * move middleware to a single file and add unit tests
* fix stream span * fix stream span