Open jbpionnier opened 8 years ago
@jbpionnier will look into adding it next.
Ok, it's possible :
var analytics = require('mashape-analytics')
var agent = analytics('SERVICE_TOKEN')
server.ext('onRequest', function (request, reply) {
agent(request.raw.req, request.raw.res)
reply.continue()
})
but there is a bug with Hapi : the request is sent twice Issue in hapi : https://github.com/hapijs/hapi/issues/2966 Pull request : https://github.com/Mashape/analytics-agent-node/pull/23
thanks
thanks @jbpionnier
Have you planned compatibility with Hapi? http://hapijs.com/
Thank's