Closed urbaitel closed 8 years ago
can you provide some debugging / log info you're seeing?
try with NODE_DEBUG=galileo
env flag.
GALILEO 3197: [agent] plugin options: {
"logBody": false,
"failLog": "/dev/null",
"failLogName": "galileo-agent-errors.log",
"limits": {
"bodySize": 10000,
"retry": 0,
"retryTime": 5,
"flush": 2,
"connection": 30
},
"queue": {
"batch": 1,
"entries": 1
},
"collector": {
"host": "collector.galileo.mashape.com",
"port": 443,
"path": "/1.1.0/single",
"ssl": true
}
}, ########## . test
All of my endpoints are now returning 404 errors when adding galileo agent, via code:
var galileo = require('galileo-agent')
var agent = galileo('##########', process.env.NODE_ENV, {
queue: {
batch: 1, // turn batching on
entries: 1 // number of entries per batch
}
})
app.use(agent)
Hey there @urbaitel! This agent was tested and is designed to support native HTTP, Express, and Restify, and the test cases are built around those technologies. It isn't tested with nor is really supported for other server technologies like Koa or Hapi as of yet. If you'd like to take a look at what would be needed to expand it out to Koa, we do accept PRs. We have published the Galileo Agent specification, which you can use as reference either for expanding this or to build a separate koa specific agent if you like.
Alternatively, you can use an http proxy, like Kong, to pass information into Galileo.
Trying to get this working with Koa instead of express. Not having any real luck yet. Thoughts?