You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i wanted to set up pmx with restify (4.0.3) and i understood i need to include pmx before inclusion of any http related stuff happens. so since i want to make pmx optional (external config file) i happen to include it within an async waterfall during setup.
so when i include restify before pmx everything works (except for catching routes with pmx, i guess).
but when i include it like this:
// ...},function(cb){if(config.get.api_server.usePmx){pmx=require('pmx').init({http: true,// HTTP routes logging (default: true)ignore_routes: [/socket\.io/,/notFound/],// Ignore http routes with this pattern (Default: [])errors: true,// Exceptions loggin (default: true)custom_probes: true,// Auto expose JS Loop Latency and HTTP req/s as custom metricsnetwork: true,// Network monitoring at the application levelports: true,// Shows which ports your app is listening on (default: false)alert_enabled: true// Enable alert sub field in custom metrics (default: false)});}cb();},function(cb){varrestify=require('restify'),server=restify.createServer({// ...
i wanted to set up pmx with restify (4.0.3) and i understood i need to include pmx before inclusion of any http related stuff happens. so since i want to make pmx optional (external config file) i happen to include it within an async waterfall during setup.
so when i include restify before pmx everything works (except for catching routes with pmx, i guess).
but when i include it like this:
i get this weird stacktrace and error:
so it is some load action in pmx/lib/transaction but i have no idea what it is supposed to be doing exactly. am i doing something wrong here?
EDIT: using node 4.2.1 on mac os x 10.11 with pmx version 0.5.5
The text was updated successfully, but these errors were encountered: