{"_id":"@antoineschaller/kadira","_rev":"2-3ad51df19310f0d2043d327c312688e5","name":"@antoineschaller/kadira","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@antoineschaller/kadira","version":"1.0.0","description":"Performance Monitoring for Meteor with email@2.0.0 support","main":"package.js","directories":{"lib":"lib","test":"tests"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://antoineschaller@bitbucket.org/akson-engineering/kadira.git"},"author":{"name":"Akson"},"license":"ISC","homepage":"https://bitbucket.org/akson-engineering/kadira#readme","gitHead":"38360ce32cfb6337bd98f1f407469da2a605e853","_id":"@antoineschaller/kadira@1.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-b2ZglHWVYFJsJJecducBktR1bbv3VXdp5jpui8tFH8ip8vNE8k4KkizVbaDvMf+0MjGFowkNZYqlvebCPjPqZQ==","shasum":"18340d552756168d3c066f912bbd48dc856e745a","tarball":"https://registry.npmjs.org/@antoineschaller/kadira/-/kadira-1.0.0.tgz","fileCount":88,"unpackedSize":295273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcvbVCRA9TVsSAnZWagAAVZ4P/1Z4Dda9p/EFU+yjw4/n\nVx7icqlSkxgS/Z6z3KMOYNdpWFVssERbY+MbrMbabxoCiSd/VSFCr+kMktED\nUXc6ayfGoxyLgzuvFVIPyS59uLnXrT+/FyAKOdQBM2UYGaeGRNqDA6SMFpvh\nOKOWuKybZd4a0nM7PkJaR+dWCuI38oINF2F4C9AFak+B3ZU5ihVF3WtMpXC6\nykDbewKNsjem2XVkKh+CV7gG3HLweXc1ITYycWN5cV6r5z5AoNwmLcJWqVOk\nvAEm06W1iHycznh992Up0pYwE3G3/UV6Mw+cf27nAsJ6PFbzRK6Gv5QBDUx+\ns3wyupZ5F0pg8O+EuGUYcCkrx30581XnexaxHdu8tSU5HY6C73Q3ryA9YIjs\nzL/NJef5P1CTw/kNzZySnER//WvwwrY+g7UHYMfCxBzClxXwyoCN6Cfe/+UX\n/ZoUfmlmT+potqQM+oHl46bLtJXDsCOJGpAW9Qtbpry0FURW+BDLuQxO2viM\ncI2NNvSLvBiSIWARXfOdTURVLVluAyrqusWioqLFnUwDvaG1GDEx1PlWuQk7\nokwdhFrMS6KDR9jwug0fH+3TFcU8Q4NxTkLWDtFjXjbbDom4BZ7yPiwOfhFk\nORgs5E5KjoKKwt7JryUXblYLgVqxmVX68v4kb12Xm1JKWg1eLYPZLKRYq5JE\na9Or\r\n=jpMF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGIn9iuelWuooJ+e9SmLMh8mvgSgX38Y7HB180u6lZqgIhANBkSXlQXa6yiomfLBW+Ef6vIm+r5MC7Rlx5g/pi2Z55"}]},"maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"_npmUser":{"name":"antoineschaller","email":"antoine.schaller@akson.ch"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kadira_1.0.0_1601369812626_0.4872097358215306"},"_hasShrinkwrap":false},"1.0.1":{"name":"@antoineschaller/kadira","version":"1.0.1","description":"Performance Monitoring for Meteor with meteor email support","main":"package.js","directories":{"lib":"lib","test":"tests"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/aksoneng/kadira.git"},"author":{"name":"Akson"},"license":"ISC","bugs":{"url":"https://github.com/aksoneng/kadira/issues"},"homepage":"https://github.com/aksoneng/kadira#readme","gitHead":"d127a9c16650744dcfe9b637ec906620c1c25d10","_id":"@antoineschaller/kadira@1.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TfeBfLOf8FelbeeCdTapCLYD/Yt7PDnkMgIFvrwBut/rZF161sS1yIrWVjZZcqRG6bGpq5Cpx6EtST4HH21Asw==","shasum":"d4a1cf1390f060fe518ddde58c45dc069a1c4be3","tarball":"https://registry.npmjs.org/@antoineschaller/kadira/-/kadira-1.0.1.tgz","fileCount":87,"unpackedSize":292220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcwtoCRA9TVsSAnZWagAAwvUQAKNqF+WYPSnOetLUY2pV\ncQTlkFv8LmMFBFwR/z+Kr1v+HHTYWLYU3nkwXIOjkgoUQmpMfOW0+CM6yEMb\n8T7IORVQz3t8ytrXhTlruViQOrIwXfyVNCaDg+AoleGVP/aPce8x98GjNRv2\nAUvAb755Jfq5CTEjb+PY+3un+Mn9WcGBw1kZK8DRP+NG8sDj2nqe7ATX0oxO\nX8PkfKHQabv1B1fWV8UEXqqoqnr8YCo38AEGGzfl4wwiDG3V1X9ejfQXqfWB\nswcTnpkp57elAU7H5DvB9VEWXOCvHw18CWZyHa5wFs2aYttBgOn5KiXfj/P/\nZhrFBiB8YURB5GB4pIAQ4ip5WadJ2JsdlykyrOHdyRfnwwOpL+JJfWr597R7\nFaDoYjRA9eAhjHTnCfzjKqMRHfCBpWRncNFLWkq5u9K7tSpSsKqJsveWXWCd\niK6bLHxKmkLyOJxXxpWDHEfWjtvZHCNLa2od1gDJDXorEutM/e+1dukb9CI0\nZ9blopSMt6DhAcsZbI2wQDN3OC4tuvNBi6PcS/VB1H9qA5Cjp2cs5gauZHSp\ntR0OlkQVeY62JLqgKWE8vKBvndaGXR6DqNCGPk+OxUd0L+KNs6v9lAcImnxW\n19yoPzod9fotUBYhjXaumUsAAtUhyCrMBm9vgV+0jz3way+uFCJd6ADTRQ4E\nYlnU\r\n=xXHR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBEF/V9dyXXK/GxrrWWNtbpdx1v7tKJyydwxA4Ew3XjXAiAQxEHRPBiSliNEdmB8+w002beOvwA6HVxWpbloCyl44w=="}]},"maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"_npmUser":{"name":"antoineschaller","email":"antoine.schaller@akson.ch"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kadira_1.0.1_1601375080378_0.1394812998545556"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-29T08:56:52.583Z","1.0.0":"2020-09-29T08:56:52.774Z","modified":"2022-04-04T14:23:03.121Z","1.0.1":"2020-09-29T10:24:40.663Z"},"maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"description":"Performance Monitoring for Meteor with meteor email support","homepage":"https://github.com/aksoneng/kadira#readme","repository":{"type":"git","url":"git+https://github.com/aksoneng/kadira.git"},"author":{"name":"Akson"},"license":"ISC","readme":"## Kadira - Performance Monitoring for Meteor\nThis project is based on the [Kadira](https://github.com/meteorhacks/kadira) without jQuery dependency.\n\nIf you are looking for the kadira server, take a look at [meteor apm server](https://github.com/lmachens/meteor-apm-server).\n\n### Getting started\n\n1. Create an account in Meteor APM or Kadira\n2. From the UI, create an app. You'll get an `AppId` and an `AppSecret`.\n3. Run `meteor add lmachens:kadira` in your project\n4. Configure your Meteor app with the `AppId` and `AppSecret` by adding the following code snippet to a `server/kadira.js` file:\n\n```js\nMeteor.startup(function() {\n  Kadira.connect('<AppId>', '<AppSecret>');\n});\n```\n\nNow you can deploy your application and it will send information to Kadira. Wait up to one minute and you'll see data appearing in the Kadira Dashboard.\n\n\n### Auto Connect\n\nYour app can connect to Kadira using environment variables or using [`Meteor.settings`](http://docs.meteor.com/#meteor_settings).\n\n#### Using Meteor.settings\nUse the followng `settings.json` file with your app:\n\n```js\n{\n  ...\n  \"kadira\": {\n    \"appId\": \"<appId>\",\n    \"appSecret\": \"<appSecret>\"\n  }\n  ...\n}\n```\n\nThe run your app with `meteor --settings=settings.json`.\n\n#### Using Environment Variables\n\nExport the following environment variables before running or deploying your app:\n\n```\nexport KADIRA_APP_ID=<appId>\nexport KADIRA_APP_SECRET=<appSecret>\n````\n\n### Error Tracking\n\nKadira comes with built in error tracking solution for Meteor apps. It has been enabled by default.\nFor more information, please visit the meteor [docs](http://galaxy-guide.meteor.com/kb-error-tracking.html).\n\nBy default, Kadira tracks all the errors for you. But you may need to handle errors yourself. For those situations, you may need to report the error back to kadira as well. Here are the some of the options you can do.  \n\n### Option 1 - Throw a new Error\n\nEasiest option is try capture errors and handle them yourself. Then throw another error. Then kadira will capture that and you can see that error from in the UI.  \n\n``` js\ntry {\n  // your code which may throw some errors\n} catch(ex) {\n  // handle your error and throw again\n  throw ex;\n}\n```\n\n### Option 2 - Use Kadira.trackError\n\nOther option is to use `Kadira.trackError` API. Which is available on both **client** and the **server**. See how it can used.  \n\n``` js\ntry {\n  // your code \n} catch(ex) {\n  var type = 'my-error-type';\n  var message = ex.message;\n  Kadira.trackError(type, message);\n}\n```\n\nWhen you are tracking custom errors, do not use following types:  \n\n*   client\n*   method\n*   sub\n*   server-crash\n*   server-internal\n\nWe use above types to track errors automatically. If you also send errors with above types, things may not works as they used to.","readmeFilename":"README.md","bugs":{"url":"https://github.com/aksoneng/kadira/issues"}}