Created
February 13, 2018 17:40
-
-
Save kjin/e1b9ddcf4360adbdef2e11b939d6a6f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('@google-cloud/trace-agent').start() | |
const Koa = require('koa'); | |
const app = new Koa(); | |
app.use(function* (next) { | |
yield next; | |
this.body = 'hi\n'; | |
}); | |
/* DEFAULT */ | |
// koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md node_modules/@google-cloud/trace-agent/build/src/plugins/plugin-koa.js:99:24 | |
/* COMMENT OUT LINE 1 */ | |
// koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md try-koa.js:4:5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment