{"name":"@opentelemetry/plugin-redis","version":"0.3.0","description":"OpenTelemetry redis 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/**/*.ts'","test:debug":"cross-env RUN_REDIS_TESTS_LOCAL=true ts-mocha --inspect-brk --no-timeouts -p tsconfig.json 'test/**/*.test.ts'","test:local":"cross-env RUN_REDIS_TESTS_LOCAL=true yarn test","tdd":"yarn test -- --watch-extensions ts --watch","clean":"rimraf build/*","check":"gts check","precompile":"tsc --version","compile":"tsc -p .","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","fix":"gts fix","prepare":"npm run compile"},"keywords":["opentelemetry","redis","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/node":"^0.3.0","@opentelemetry/tracing":"^0.3.0","@types/mocha":"^5.2.7","@types/node":"^12.6.9","@types/redis":"^2.8.14","@types/shimmer":"^1.0.1","codecov":"^3.6.1","cross-env":"^6.0.3","gts":"^1.1.0","mocha":"^6.2.0","nyc":"^14.1.1","redis":"^2.8.0","rimraf":"^3.0.0","ts-mocha":"^6.0.0","ts-node":"^8.3.0","tslint-consistent-codestyle":"^1.15.1","tslint-microsoft-contrib":"^6.2.0","typescript":"3.7.2"},"dependencies":{"@opentelemetry/core":"^0.3.0","@opentelemetry/types":"^0.3.0","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-redis@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mayurkale22","email":"mayurkale22@gmail.com"},"dist":{"integrity":"sha512-jl3/oL4UA9faVAMw/7vZfh6tLw0GdhbNn2WGFuJ9WDPJSnQco4JQ+Eo0aLQ5IxjbPw5qBHxpSlIMH+G7pTYOpA==","shasum":"787f561ef2d62025b351e2dc41d36bee2e677243","tarball":"http://registry-npm.ywwl.com/@opentelemetry/plugin-redis/download/@opentelemetry/plugin-redis-0.3.0.tgz","fileCount":13,"unpackedSize":31254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8+jECRA9TVsSAnZWagAArCYP/R43dAGGy2cNnwY0Uwh2\n+2nMl2iUxzj2iZC0sUQ7vy13z+aqlCSi6NMHxm/JS791GO+vMSeQJvDqNBCc\naJxRDnAirwzqy5SH76WOqwsczAwpKa5kxOuYcAI5ZCgWLBl17QYFIA1Zf5Br\nFtudXIyqoJN1vNLShpi5ADblQIYTTKz7NHlqhl4qab7g4HphyuSPEbSZo5aq\n0w03koWrJ0m982rLpYTivPDEG4RoUSfKGvYHGA59Nb9kZD7F8sCmTMe8ieKP\nmfhdQRo5tme4WHh5tAYWvHuzVshYryYM7gqw5s41Z1omi3pDgIPWyBQyfUec\nYmbggwKPTg6YM0itgOP3JjXopqiI/zBQRbndMPFUAez4FdZ1hZkBDZF3Fk2E\n2m0K4soDTz3liX/pMjpKP3j03yNC4RvTgSqulMF4Jys20QYDvD91ZnURzYzz\nspLx0CVn4L8lFUjcJ/pjLyhr9bVIZBf7HuQ7ICcu70Bc+jGYEcIvN8BZoFa1\nBpPhyLQZDUFeVZ/Ob4ZzOGwhuHa65UGbMPikWdVhYLWtl7JDlZUp1y3yrsk4\nMUC9JuuFYLMJLUO/xtXo85HguWLCOTN+9Z8dGGL8+chsyzT6xdqIicy1tV1I\nvbPscvUlmPYLBAjRpDUJ4O92BAwxsjTyZqgwK5YxnuWJbZsPzRGsA7sz1jkA\nWocr\r\n=tp0X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZ78V/jZ93pMpYDhJP4wjvgZQHW1lfReTE0YgBq6pzKAiAm6Q+FOqkhCK6dBA8S3PgjY4b5TAWnS8a05FWaOdfPFw=="}],"size":8415,"noattachment":false,"key":"/@opentelemetry/plugin-redis/-/@opentelemetry/plugin-redis-0.3.0.tgz"},"maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"dkhan","email":"daniel@khan.io"},{"name":"bg451","email":"brandon.gonzalez.451@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"mayurkale22","email":"mayurkale22@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-redis_0.3.0_1576265923539_0.08352508333133812"},"_hasShrinkwrap":false,"deprecated":"Deprecated in favor of @opentelemetry/instrumentation-redis","readme":"# OpenTelemetry redis 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 [`redis@^2.6.0`](https://github.com/NodeRedis/node_redis).\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```\nnpm install --save @opentelemetry/plugin-redis\n```\n\n### Supported Versions\n - `>=2.6.0`\n\n## Usage\n\nOpenTelemetry Redis 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 [redis](https://www.npmjs.com/package/redis).\n\nTo load a specific plugin (**redis** 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        redis: {\n          enabled: true,\n          // You may use a package name or absolute path to the file.\n          path: '@opentelemetry/plugin-redis',\n        }\n      },\n    },\n  ],\n  tracerProvider: provider,\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```javascript\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/redis](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/examples/redis) 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-redis\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-plugin-redis\n[devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-contrib.svg?path=plugins%2Fnode%2Fopentelemetry-plugin-redis&type=dev\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-plugin-redis&type=dev\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/plugin-redis\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fplugin-redis.svg\n","publish_time":1576265923678,"_cnpm_publish_time":1576265923678,"dist-tags":{"latest":"0.15.0"}}