{"name":"@opentelemetry/plugin-pg-pool","version":"0.5.2","description":"OpenTelemetry postgres pool 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'","test:debug":"ts-mocha --inspect-brk --no-timeouts -p tsconfig.json 'test/**/*.test.ts'","test:local":"cross-env RUN_POSTGRES_TESTS_LOCAL=true npm run test","tdd":"npm run test -- --watch-extensions ts --watch","clean":"rimraf build/*","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../../","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","postgres","pg","pg-pool","postgresql","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.5.2","@opentelemetry/plugin-pg":"^0.5.2","@opentelemetry/test-utils":"^0.5.2","@types/mocha":"^5.2.7","@types/node":"^12.6.9","@types/pg":"^7.11.2","@types/pg-pool":"^2.0.1","@types/shimmer":"^1.0.1","codecov":"^3.6.1","cross-env":"^6.0.0","gts":"^1.1.0","mocha":"^6.2.0","nyc":"^14.1.1","pg":"^7.12.1","pg-pool":"^2.0.7","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.5.2","@opentelemetry/core":"^0.5.2","@opentelemetry/node":"^0.5.2","@opentelemetry/tracing":"^0.5.2","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-pg-pool@0.5.2","_nodeVersion":"12.14.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-OwYslIF8Dx00aCtZTwrR4Uteh3g9qanwNBkimXkFPewXmDZZeirGscJ1FspDhhLj49bm/1N4y2wYsxjM7DL8Ew==","shasum":"b660eeadae39c22c89bba8767e741541f7658621","tarball":"http://registry-npm.ywwl.com/@opentelemetry/plugin-pg-pool/download/@opentelemetry/plugin-pg-pool-0.5.2.tgz","fileCount":15,"unpackedSize":32803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefkA7CRA9TVsSAnZWagAARoUP/1Syxf/Kut6B7nwdTfzJ\nHTKkMRbpQGlfBKQwawoGIUoy4ID4xmPfNmafJKoU2HI7IGH6qBhDmKmK161h\n7i1/6ew/qmxuw65/bCyDPULy4GHuoI/PzqRVKL3RtvdQFOhM6x7LWQF2aka3\njDUEau+hrWE6FQfIUnCMgiNree3JQW0Nf5B0w1v2DnOcvRKGx6xlPHv3NvF1\n+q08IAlgRKMz81RK6fbS2eUAtlnNqvD8VtzMCCciBrbXLM/sLHy96jZAbTHj\nsFaj/UHz/kXWi6ON2zbH/TdIZtBBIt1VUPNW8hQ649i348X7YzO8Rpol52Bw\nj726chcfolzNVewO9HMmLgIqa0gUs7N3oM8kdQgIBhFDhO0gef3aHP4lr4Q1\ngy64rGvN1bfZK4z9jhV0FCoa7JagW2hUnKM4j/eOLZfG4E+eHpiF8U1wUTtt\nfSjY2AePp7g+2OfLhvQtkjZAxaJezq/rN8cFxzTPEevOBboUM5bOKVBpKW0M\nudNkFvMiKMPZZNKHjiAYAFynE9jgb1HdL+7RfluTeTkMX6iXRnHYGUIq36l+\nk107DB1bX63v1AKySEy7vWsUEmSPvrNol5eAKHZhmQ8OE8cI3zenD3OVWbCX\nezLr9y1ATJ6ld8t8QSiZN4ZLVzu4gDPuxiyKrXYggwXzyjc+4P68TrKt1b3W\nrG4E\r\n=SayU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCSL2N0HU7lf4Q6bVja9klB9WPiYHKGv8UwmWk/yaMQ9gIfcKAuH6qVXZHAtILYw3R1BJlLjWpE9BRZS41irsObuw=="}],"size":8628,"noattachment":false,"key":"/@opentelemetry/plugin-pg-pool/-/@opentelemetry/plugin-pg-pool-0.5.2.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-pg-pool_0.5.2_1585332282932_0.49433311791617984"},"_hasShrinkwrap":false,"deprecated":"Deprecated in favor of @opentelemetry/instrumentation-pg","readme":"# OpenTelemetry Postgres 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 [`pg`](https://github.com/brianc/node-postgres).\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-pg\nnpm install --save @opentelemetry/plugin-pg-pool\n```\n\n## Usage\n\nTo load all of the [default supported plugins](https://github.com/open-telemetry/opentelemetry-js#plugins), use the 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\n```js\nconst { NodeTracerProvider } = require('@opentelemetry/node');\n\nconst provider = new NodeTracerProvider(); // All default plugins will be used\n```\n\nIf instead you would just want to load a specific plugin (**pg** and **pg-pool** in this case), specify it in the `NodeTracer` configuration. You'll need to install both plugins for full functionality.\n\n```js\nconst { NodeTracerProvider } = require('@opentelemetry/node');\n\nconst provider = new NodeTracerProvider({\n  plugins: {\n    pg: {\n      enabled: true,\n      // You may use a package name or absolute path to the module\n      path: '@opentelemetry/plugin-pg',\n    },\n    'pg-pool': {\n      enabled: true,\n      // You may use a package name or absolute path to the module\n      path: '@opentelemetry/plugin-pg-pool',\n    }\n  }\n});\n```\n\nSee [examples/postgres](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/examples/postgres) for a short example.\n\n## Supported Versions\n\n- [pg](https://npmjs.com/package/pg): `7.x`\n- [pg-pool](https://npmjs.com/package/pg-pool): `2.x`\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-pg-pool\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-plugin-pg-pool\n[devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-contrib.svg?path=plugins%2Fnode%2Fopentelemetry-plugin-pg-pool&type=dev\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-plugin-pg-pool&type=dev\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/plugin-pg-pool\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fplugin-pg-pool.svg\n","publish_time":1585332283016,"_cnpm_publish_time":1585332283016,"dist-tags":{"latest":"0.15.0"}}