{"name":"@opentelemetry/plugin-mysql","version":"0.6.1","description":"OpenTelemetry mysql automatic instrumentation package.","main":"build/src/index.js","types":"build/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"test":"nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","tdd":"npm run test -- --watch-extensions ts --watch","clean":"rimraf build/*","lint":"gts check","lint:fix":"gts fix","precompile":"tsc --version","version:update":"node ../../scripts/version-update.js","compile":"npm run version:update && tsc -p .","prepare":"npm run compile"},"keywords":["opentelemetry","mysql","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"^0.6.1","@opentelemetry/node":"^0.6.1","@opentelemetry/test-utils":"^0.6.1","@opentelemetry/tracing":"^0.6.1","@types/mocha":"^7.0.0","@types/mysql":"^2.15.4","@types/node":"^12.6.9","@types/shimmer":"^1.0.1","codecov":"^3.5.0","gts":"^1.1.0","mocha":"^6.2.0","mysql":"^2.17.1","nyc":"^15.0.0","rimraf":"^3.0.0","ts-mocha":"^6.0.0","ts-node":"^8.6.2","tslint-consistent-codestyle":"^1.16.0","tslint-microsoft-contrib":"^6.2.0","typescript":"3.7.2"},"dependencies":{"@opentelemetry/api":"^0.6.1","@opentelemetry/core":"^0.6.1","shimmer":"^1.2.1"},"bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@opentelemetry/plugin-mysql@0.6.1","_nodeVersion":"12.14.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-4DbgX9saGb3uVnL8vXRfm06WYFY3xQ+Fy0vuk4BnpnXeQeWzu8z5+psyzpcqsG1J28YVk0mVd8JY0ub48zy6zA==","shasum":"d79cec01633296a16069a774b7e1d1b84b868dd8","tarball":"http://registry-npm.ywwl.com/@opentelemetry/plugin-mysql/download/@opentelemetry/plugin-mysql-0.6.1.tgz","fileCount":15,"unpackedSize":37455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejhoQCRA9TVsSAnZWagAA8xEP/RAJuFC0OwhFVEvlUkT3\nzCBJKoNPuSRgjanbvHCNTQ69Yi00BgugolWmq55f81pquDz4AzQkry3qIfzE\nhZPYagCxWon6RHsJftD4Zplm8Win+5zPKDP+w8sED0kDX7ZjWs3IPFZJLno6\nE8AUmuRljWRHqQYHRBHSiftujfK8vBoIn8El56epjuLVLxEJv0x9A+x+lP8H\nbLre9NULKqd7CyTIeu+XQ+ERaEgcrz0M46WSzVEYn/SaqVd1hiLwEpdAdDUW\nx6QpioyOjyigHnYqFTG2uCcf4byJqrxmXTzq1Msl7NZ6CofXXrztgewE2NWr\nibdPATQxJ79yd++Q9sn4T0SUtYGMBG1zjCGZ3ORKN4vROij0YNko+I6Ty3He\nixeI2SSB4tlL1MXGbNXUhpSmxmpsMWYZAImw0NYuKv22awfwQej+SVCOhuzK\nOJ5G0P6bwM4E9B4jfPRqvN6PiwdMt0E8usV80YdDQButG/+BDC5zVBdLyRPj\nyaO+NVIn1Zvf3s3kuUg1ZgZSyyQgzD7fgl2B6loMV9PKXd4bcSLVctsLynWH\nB5qpPvTQzG1ZbWpPpEBJihu53OWoShGRNVsJoQA1IWeFeaH4CzHJ41TRrSr+\nRVaO48+7nW6gIHKTqFYMziPkSpU8vxHf9JQCzPFFtBMoX87SopXhurmt0KcG\nsH/9\r\n=jnk/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuZahMd/w1sPLqEI5R0nHo4yZGpRF8nu2vcSzkh8p6TAiBjcwCUblpTJow1a1U0jHT3IDjN+bOTrXoXQVkijo496Q=="}],"size":9151,"noattachment":false,"key":"/@opentelemetry/plugin-mysql/-/@opentelemetry/plugin-mysql-0.6.1.tgz"},"maintainers":[{"name":"bg451","email":"brandon.gonzalez.451@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"dkhan","email":"daniel@khan.io"},{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"mayurkale22","email":"mayurkale22@gmail.com"}],"_npmUser":{"name":"dyladan","email":"dyladan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-mysql_0.6.1_1586371087560_0.4350232545325945"},"_hasShrinkwrap":false,"deprecated":"Deprecated in favor of @opentelemetry/instrumentation-mysql","readme":"# OpenTelemetry mysql Instrumentation for Node.js\n\n[![NPM Published Version][npm-img]][npm-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis module provides automatic instrumentation for [`mysql`](https://www.npmjs.com/package/mysql).\n\nFor automatic instrumentation see the\n[@opentelemetry/node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/plugin-mysql\n```\n\n## Supported Versions\n- `~2.0.0`\n\n## Usage\n\nOpenTelemetry MySQL Instrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems when working with [mysql](https://www.npmjs.com/package/mysql).\n\nTo load a specific plugin (**MySQL** in this case), specify it in the registerInstrumentations's configuration\n```js\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { registerInstrumentations } = require('@opentelemetry/instrumentation');\n\nconst provider = new NodeTracerProvider();\nprovider.register();\n\nregisterInstrumentations({\n  instrumentations: [\n    {\n      plugins: {\n        mysql: {\n          enabled: true,\n          // You may use a package name or absolute path to the file.\n          path: '@opentelemetry/plugin-mysql',\n        }\n      },\n    },\n  ],\n  tracerProvider: provider,\n});\n\n```\n\nTo load all of the [supported plugins](https://github.com/open-telemetry/opentelemetry-js#plugins), use below approach. Each plugin is only loaded when the module that it patches is loaded; in other words, there is no computational overhead for listing plugins for unused modules.\n```js\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { registerInstrumentations } = require('@opentelemetry/instrumentation');\n\nconst provider = new NodeTracerProvider();\nprovider.register();\nregisterInstrumentations({\n  tracerProvider: provider,\n});\n```\n\nSee [examples/mysql](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/examples/mysql) for a short example.\n\n## Useful links\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>\n- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions\n[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-contrib.svg?path=plugins%2Fnode%2Fopentelemetry-plugin-mysql\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-plugin-mysql\n[devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-contrib.svg?path=plugins%2Fnode%2Fopentelemetry-plugin-mysql&type=dev\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-plugin-mysql&type=dev\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/plugin-mysql\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fplugin-mysql.svg\n","publish_time":1586371087756,"_cnpm_publish_time":1586371087756,"dist-tags":{"latest":"0.15.0"}}