{"action":"created","issue":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/151","repository_url":"https://api.github.com/repos/RuntimeTools/appmetrics","labels_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/151/comments","events_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/151/events","html_url":"https://github.com/RuntimeTools/appmetrics/issues/151","id":133663843,"number":151,"title":"metrics wont work if not using pg module directly","user":{"login":"srkimir","id":8228710,"avatar_url":"https://avatars.githubusercontent.com/u/8228710?v=3","gravatar_id":"","url":"https://api.github.com/users/srkimir","html_url":"https://github.com/srkimir","followers_url":"https://api.github.com/users/srkimir/followers","following_url":"https://api.github.com/users/srkimir/following{/other_user}","gists_url":"https://api.github.com/users/srkimir/gists{/gist_id}","starred_url":"https://api.github.com/users/srkimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srkimir/subscriptions","organizations_url":"https://api.github.com/users/srkimir/orgs","repos_url":"https://api.github.com/users/srkimir/repos","events_url":"https://api.github.com/users/srkimir/events{/privacy}","received_events_url":"https://api.github.com/users/srkimir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-15T09:29:02Z","updated_at":"2016-02-15T09:50:56Z","closed_at":null,"body":"For example i'm using sequelize http://docs.sequelizejs.com/ which is ORM for PostgreSQL which behind the scenes use `pg` module. Following wont work with ORM but will work if using `pg` directly:\r\n\r\n```\r\nvar appmetrics = require('appmetrics');\r\nvar monitoring = appmetrics.monitor();\r\n\r\nmetrics.on('postgres', (data) => {\r\n  console.log(data)\r\n})\r\n```\r\n\r\nSame thing happens for mongo and mongoose ODM http://mongoosejs.com/"},"comment":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/comments/184137717","html_url":"https://github.com/RuntimeTools/appmetrics/issues/151#issuecomment-184137717","issue_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/151","id":184137717,"user":{"login":"seabaylea","id":11974522,"avatar_url":"https://avatars.githubusercontent.com/u/11974522?v=3","gravatar_id":"","url":"https://api.github.com/users/seabaylea","html_url":"https://github.com/seabaylea","followers_url":"https://api.github.com/users/seabaylea/followers","following_url":"https://api.github.com/users/seabaylea/following{/other_user}","gists_url":"https://api.github.com/users/seabaylea/gists{/gist_id}","starred_url":"https://api.github.com/users/seabaylea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seabaylea/subscriptions","organizations_url":"https://api.github.com/users/seabaylea/orgs","repos_url":"https://api.github.com/users/seabaylea/repos","events_url":"https://api.github.com/users/seabaylea/events{/privacy}","received_events_url":"https://api.github.com/users/seabaylea/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T09:50:55Z","updated_at":"2016-02-15T09:50:55Z","body":"@srkimir Is there a dependency between `sequelize` and `pg`? I can't find an obvious one via either the sequelize page on npmjs.com or looking at the packages installed via `npm install sequelize`\r\n\r\nIf there isn't, we could always look at adding support for `sequelize` monitoring."}}