aftership / deprecated-koa-newrelic Goto Github PK
View Code? Open in Web Editor NEWKoa middleware to allow Newrelic monitor Koa applications like Express
Koa middleware to allow Newrelic monitor Koa applications like Express
Still see /* in NewRelic.
Problem is also mentioned in StackOverflow:
http://stackoverflow.com/questions/38886721/how-to-configure-newrelic-on-node-koa-app
Hi all,
i have tried to use koa-newrelic but still get /* for all transactions.
currently i am using
i configure koa-newrelic from the example of this repo.
are there more configuration?
Hi, I found that the function newrelic.setTransactionName()
is put after the yield next()
.
https://github.com/AfterShip/koa-newrelic/blob/2.0.0/index.js#L156-L162
However, in Koa2, the newrelic log this error:
{"v":0,"level":40,"name":"newrelic","hostname":"Adams-iMac.local","pid":26721,"time":"2017-07-11T05:11:51.042Z","msg":"No transaction found when setting name to 'GET /index'.","component":"api"}
Newrelic module throws this error at these lines because the transaction not found.
https://github.com/newrelic/node-newrelic/blob/master/api.js#L66-L69
Do you have any ideas about this?
npm test
is showing 5 failing tests.
Are the tests simply out of date? I can help w/ travis integration if you are interested.
Also, is there any plan to add support for the Koa 2 alpha?
Is it possible to somehow configure which errors should be reported? For example, I'd like to skip 4xx errors from reporting. Also would be great to include additional headers/request params to error parameters. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.