{"_id":"@aspecto/opentelemetry-instrumentation-mongodb","_rev":"59-2a9c46998a0bf6eb79bb4c70fb3a7274","name":"@aspecto/opentelemetry-instrumentation-mongodb","dist-tags":{"alpha":"0.0.0-2024-05-21--09-06","latest":"0.2.0"},"versions":{"0.0.0-2021-05-13--08-21":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-13--08-21","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.18.0","@opentelemetry/node":"0.18.0","@opentelemetry/tracing":"0.18.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^0.18.0","@opentelemetry/instrumentation":"^0.18.0","@opentelemetry/semantic-conventions":"^0.18.0"},"gitHead":"e4358b5a34c8fa2cd0fec288aa97212a4c05b031","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-13--08-21","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-yYFZvuWyNBPe56+WrFbqJjz2gqMDL7jgtksVxe3eI9G6eQUEkHobBBMauscFo4q83ol/ejNUx0W3cKc5UBDwlQ==","shasum":"8ede61c86f47dc040b4b56efdb401df9d9a8f835","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-13--08-21.tgz","fileCount":12,"unpackedSize":54454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnOHKCRA9TVsSAnZWagAA33EP/jiDR5bJUCbGmy48pctc\nN0M9WIYNOAbrfHOiyZgYR0LWeUrNTvSkltRIXvmi0b0iPV+m81bcvIyGaDGj\nqXkp6RV1tqNWxTT7w5JtZX+oQ02iytS1v2GwtcssF6HjsZ6T0jFD2nCOeSev\npsbtjukSyBxbCqpdmDoREWmLRCaNptFMHdPVMnd2nAxff8epAXHxhcZ1nyUT\ndA7rP05No3t/iybRoNkmtX0A26WJ5FU2w1TcWQvIo0NYSzvFO1bU3NM3yowV\nmVEgswJ2poWUQwfo7ckodncFiSOxCDgWr/9OceEK6HtCt3Q0qksRZlpf8mZN\nwEmgtAjBfsAry6Nww5Kls7+15I6NAHzDzVoxsQq3ok+ibomgybys7ffxx7o9\nxVHzI+C54R+aYy1fUDgjZQEf/bbHRFcZ3zcVhOEhMCNL5zH+GE3lnNouOtQf\nF9N06TG1UGJ2lPk1ItjfT4d0neTP2WBd6chHf8K2R0wjZvkUCxMnYcBYXA8l\nGxiqxtv/4cQ0E7EAIbdbXKOyn7xVvFi7FvaOHm8PyU6BKybrAqgNh6orljAt\n/dR/bg6spIZ175td7v5dXxJxKyLqn90uo0U66lMG72ZHivOOUgbIqlrNv654\nn2I+mChB507sgW1mK10pl2G9XWZ1U5HooOdeR8x4gk5DTcy8165iZpfw+SwY\nuzKQ\r\n=j9XJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZVG/8KACjF2WE/BJXQX9IRKR+/M3OFUmDl6wfQLIUHAiEA3XQJPYzvhe3wRxBWMm6+WmQ4WiF14Lq2Hv/+3dIhNKk="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-13--08-21_1620894153491_0.23035184459888236"},"_hasShrinkwrap":false},"0.0.0-2021-05-13--09-11":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-13--09-11","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"384e8be4ef4c86cb5e3cdeb17ae905bdeef57c77","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-13--09-11","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-MHaLAYt976b5IjFT1wy2M/uezmzt2iHPCKirWoZhPCqH/vHjVMofGP5wFnZAMUUhRDjpC1TFTU+n+Qh4AjCkSw==","shasum":"4fb6762e545d8a307a591bf2a25adae97ad3cb78","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-13--09-11.tgz","fileCount":12,"unpackedSize":54471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnO1bCRA9TVsSAnZWagAAvqUP/Ru34MxZ2ltIXldX6oW4\nsV++ofYyOzG1WR5KSUooioaKaNDQBg0iUnXqgpn1nb26w8WZyxo5tcWKs1aS\nAtgPdBvzyHn9tNDIgV0Tn5B0LXtQqu8bOT7muXTNe4nvYYTIY1YnHNw0mQXK\nEoZeWqu4LJUbVy/OUsBZtlJebCTl7OmyijMiioVg9GQm2qTVTaP3Pmg2NTeq\niSkhR6fC+nO0zan3vXVi2nMw/HgmwhIk4UBCbHKJG8PQBtw4iVrPAaxdUYQV\nlWHhDX3eHbISMdQSZRU3frdOdPmbGpJMOvWUl8C87Y3sLePUENy4bXxOtfUF\nqjC0zXyxyx1CEciy+0DDn/EUMx8nAO8BnzKeOJFVJBseikZRGckb1LK83cHU\npc2bJG6c2glrfZ465Ndr63qbkTWAINCe7Qv9sQCzGJ3Prm6DnyLcOfs1dB4C\nkUP61OSvFaWTw0znRBr8peFiHqJCNy/lworqzoaoTAa8y4pynaRmAtSWtneG\n6Xbs/8gBccEez359irgvqVRoyZZJWUQdH4uBhT+XFnbpBkrictMu/XXq6skM\nLpmjpkd6bLdPuK6OFFI8ukPKuR41NBqGPpb/0so/RR8M1p+VJ95vVZyOtQqQ\nsjHiow8c6lXh+Ts95sL7/wF/TwJIB7g5hl7pIQEqM9rK9s+ERy9gQhTydo0w\n1k5E\r\n=ANcz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIDAGAR+MBYplyJvvppLGc7toJLauKJBK0FEdrWfNjLAIgKfV/XIcD/uYsShI/0sxl8RCrI6PIlz5+33qREhkEfAc="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-13--09-11_1620897114985_0.36539150937442333"},"_hasShrinkwrap":false},"0.0.116":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.116","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"d41547aad743ec22dc8305ef6881ece61a7b247f","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.116","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-pBjBABJRnKKqC6QrnCOTM1FVONOqThyopMlzvCwisPmuZYvmdCsJnasr3kjw1Nqi4RD+fk1IEGxZ1tqXEZFJ2g==","shasum":"406ab577d82ebfaecbde75216fc1c9b35842e072","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.116.tgz","fileCount":12,"unpackedSize":54786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgo2EQCRA9TVsSAnZWagAAJOQP/i9pY4CI7wVfBMk6DikH\npG0CYHPVdl9BQQxwiUJiooS0b8w3C7jK3c0t2ayLU3g9gjj1ZKWLHDrvgE3K\n0rOUEEJ8Wn3weJ47PNQYys+z4dwjgMstopBNyE/bwtfKXEZlRD5ZbE4Hbrx1\nERfj0K2gyJis8mkIJw3khDSfLjFD3xLrVtPiJGBJlPZYFpOX09uoBnH0IIP+\nrV/8zMiZZhdydLqRj2v419KJ2+i3eebvMFjAJaqAwpx4Z/lGWtlk/G8MGL9X\nPq5tzhlaIY/xbNSYOjOK5wfE3HZa9+pwM3LMoB85a4ormyoUbejV0GWc1UaT\nsyBBbbMPmLTAPvDZx5KoPLVQpLlgaPkHQU7Y0Bq0WsTUHETfsf3ou5CnjtZn\n03c2yWbhCvyoP4jpARYG/elaSR6pa74Dbtfe/jQvRsq7w/K71qIFmP2GBiLZ\n2xyOHqJkx/uI5XJqmGRlBl/KZO4GGLmKPbAbsxVs2Z6gvXkdVFGASQzdJRJR\nXUGjlYNedTO1RqHEN6muptWi2kEjD+H2A9PmruVzDYjI2I2HNRp0aW41ZrLv\nbfF3yZbIfsZD9dWPsfyoZ7cHk8tkxUMXYgKSTfmeZNqdwyQXQA8P8EScFkYw\n6NIu8Q0vxKljMQIn8dK2O2f+M3Jj42ToJloWuka5JR5dt2Xdvc9Nxb5eCBHr\nsRyX\r\n=YBfw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUA71a9IxlQStXfdvOkeSN6qa+6eB5PTAa67WQYof5tAiEAns/ETzHV174AU5vmr4Fs2rDZgJO/0iIW4xoybeX8N4Y="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.116_1621319951736_0.8264653753986002"},"_hasShrinkwrap":false},"0.0.0-2021-05-25--13-59":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-25--13-59","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"aad365e5158b971d1d6c8b9dd1bf4810b2d0f46a","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-25--13-59","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-lu5cAwQdqJD/u1vZjKvJe+p5IxAyp+dbHm6kFW3b7/ra+z64Hq7MdW8Ad8BaITgzGE0v/sNes1EpJegCDCMVLg==","shasum":"793421253d3c9a650ae048a906eb55a7ac1fd826","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-25--13-59.tgz","fileCount":12,"unpackedSize":54834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrQLhCRA9TVsSAnZWagAAcqQP/1GuOkgeORC3UO7OV9in\nHjlU02PEh3IBKzGz2XrBmJZgoUKxhQtjVj4sovAddQkkdn0KlUB4g0nGWzGe\nGn8ibTd/SlC+r1pSmxu492n/JQuONNbgVf0+SLuBWLvI3E0+NFRciaBUpomj\nET5U01x0mi2U7yszuyI4Ly639ey/ryyL4YRANJsNGeqhSUO0RElXtVhFT1wx\nEFniCiIR1dCTH4ch+krKxSBgQ5jK9rGYujbxfnGNG5mrSBSoifLSUE5jkr4I\n89l9mnfoufVHKC1Qr+wjWEfkkKAOSXwQtnraYsNkxcxi+dUHxv06QivkpOcv\nTq0m71v1L0rWxTm/CraSspC4tJw/nDaCy7e9ysspBaWiHlzGU956kqYBBI0M\ngCSTOpp2P8gJqO6Lj4el0ygkxv8/6p60ZZzorUHW9XCtJIN5h5pCGHLPvF8g\nsS/qxVZLA2VKdZET8JQ6/Luv7DD0F1w+UHH1yfd0133R4cHEz+rI3V7LxBsh\nemG128xvEy09q3S5k///kxM8sTgUwSPPCdlLayFRqcbWERGN4qu2VoEzed/F\nLUR+IQ3ol+ovlupGCRKs+yWOu54miG4gHuWtUmmNHWOLaruGKxIwFekZC5eB\nboWXxeHecMEyh/m1ESom38MN4xpXn3tLFvf1t/UapwLX0wDqP/NnHuYTpvHO\nGjY2\r\n=g28w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmv9RSg7e8flSmrzJTDH2qPAkCdbJdk1UOLYCfmsosJAIhALsGE6JhSyXm1gy6tJ+/XTkNntTYfE5XL59X+6bGzg94"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-25--13-59_1621951201267_0.878441087406779"},"_hasShrinkwrap":false},"0.0.0-2021-05-26--07-48":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-26--07-48","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"d565ea89acad819fcbd32d48f4b506f768d4df58","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-26--07-48","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-8ZNGFlszctEJGaCrcC54zY0WPZhPwgNzZp8vAl0ug2wTwWeTESJcD/3BYG4coxP5uNmi7dEntHJLLzqOYBgGvQ==","shasum":"4738c226879152a47942be88d44fbf0cac5998ae","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-26--07-48.tgz","fileCount":12,"unpackedSize":54834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrf2DCRA9TVsSAnZWagAA0wgP/REn6r4jq+zVQ33RwpKF\nYco0WZ570nGuRxF5Fff+UIZPL4iX9nro8ZA/0W4EUeWMM9DHCAEdn9+c6jsb\nC5q8ctKsvOHMHK5NocJzKzW3r4ulPI3CgrZwwiLxPpxhPqSM5R20Lgcaw6EG\nQrHLCfa7ekNd4wBhsCLLuFgF/d0XYwIy/sHMspHka+tebEYoSrb3NIHtKxtk\nTdfVBDKFpdoRSE8/U6bkg1ujQH6jivP4y8rOyp9s6tIxSTh43afnG40hLmsD\nWi02GboOW/aRGYaShh7s7y1SxUwaM+w0SPT6aLylsO4eJMDNT6CvTWd6ZgDQ\nsqlmbbzjP0VJD6YHBO5S3wdJZ4QzQN+MBdUAzPumE0ExA+UjwMYzUIzSSyS3\nK6P9cSSPdK4zTxJ01E2hrJczFxZbD8Gk1ZitQ14EyilAXrLyy5ZTYRkLeK8J\n/S/l8BntoA2CFNzVxCONS2L2cwUafu3HL6t3NSWJ1oXYTgEIzxPGfezKEdCo\nhiSPU8HYoIb28CAPhz0t87lc32yFBTVh1fQNmzhGDea7iIj9xqHz8KeMKzXG\nuCEu1ASz89rNxt5ETjVGymJGZSnbv16U8jcIkmMfKJtLLf9AVw7WzxrvLLl0\nKRLpsN1ZDXlZ5ks/TylfWyTxYb5HCsnzZqhxwTYPDQFrJaboXULzdtrKsPp3\nermX\r\n=d5aK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDk+I8+Ur4rjL0cEnJVfM1pxGYIATVLnuCaehYLoLf3BgIhAKdH21/BonwFDhudgIpc/6paa7Wj93ey5e+opcO3wh/A"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-26--07-48_1622015363323_0.4910268682951566"},"_hasShrinkwrap":false},"0.0.0-2021-05-26--12-57":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-26--12-57","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"f624ecf9538412034f19bce98ae48f954d36f9ed","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-26--12-57","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-LTIkOfOpufd9lfow3xILMqLQp5AdKynVfrkOl1WSVTuxHL3fFH6xGWtULUwFSdqB7X1Dr9mFvZMewb78vxhA/w==","shasum":"7f5786d3c081a47234a3fe1b67d69e35458fd1c4","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-26--12-57.tgz","fileCount":12,"unpackedSize":54834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrkXxCRA9TVsSAnZWagAAqk0P/iAi/PN2F89ex3A056lT\n40LGCDN2cN+idzr1vRf+ouRqQ3YK2pGFvepaYYu6srOgwyMtmCHKhItAoKd8\n8rEtiXAGdhttE6afjqO95mHkrBSllSAMnovHzI3+oo6g3WPTa18jfo80aF48\nNStSbQr6dKWFrVKNN72b6AC1lz/BvgSvEpATbWYf1Yaym0bMux7PMc5MfuR6\nVmrnOxo1FJw9Xy9pQ6edTAAZe7R9uCsUSutFGpY4bkPoAQbNaRdBMhKfXWxI\n9yJFeda59n1Aie5lf3el3K51OAECtXvsyMhbnYeEdi8TxtgfeX6rYiJDqnyS\njMeN4WsOANpGwjJf1kkR9M3I+tXAFGsGqfJ+ez+0nUFBQ6jUC+XMmesxYfnS\nnZ7KWKpO/iGz5XOFLRZAqzUNR05T9edtKhKtsBm5rb9/sVw8bgJ2qChAWsBe\nUAqnz73/Wx+FbB0xSNfjaqGXpG8gBhZfegT6h0MjYuitUE4LJAK/iJmYm4c1\nbKMCwYfE9l+yNN6iDMlGzHYNjOOH5iwze9O53eKEvDoCIlhbX1nou3HkGR5h\nMkeD4QPrD9p9KnIDpH75r49tzPOxOPqlIifQk9VNvg0qnzTeJgv7pkCa/klF\nj2mDu3y/yNqgFSvYMaQ9yfMQMHxvV48bEBGg9IupYjhniTziU9jrKY00d3Yh\n8NsC\r\n=f/uE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpOxl/MjmTvlvzk0Au/Cjz/PRklQsHifVYOM2H4OpypAiBpS08CqiH2BpHh+hSt+K0O5O3WjuRtvxtDw9+A2SymQA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-26--12-57_1622033905011_0.3657658005764597"},"_hasShrinkwrap":false},"0.0.0-2021-05-26--15-21":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-26--15-21","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"374c4946f1f821d5a323574059f79e77120422d0","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-26--15-21","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-jEZVmYH6Av85odkaNt9uoMLmIsbklbEzxhZj3XW+dFPCBD72hNRJZ30tb45CTBQjHk7OjEsW+rYkzfVkD4udeg==","shasum":"68976a7881147e9ef9846de1d52988c255592cab","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-26--15-21.tgz","fileCount":12,"unpackedSize":54834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrmeFCRA9TVsSAnZWagAAKJ8P/A09wDsERLY5x8Zfp85n\njNh4VOMifZAAuI6DoaiROi4luMG7OYG0st+1VKqQMcrl+ouR/sLdIwxCjEZp\nG+Da0lFRIML4eMzBZoJMFsDdTMiV3zOXrpGxGe847Ckg5YSMFJnayWNsrOQ4\nC6Ml83H5LhjkVRMpd9a1lucuFG0wr59n94Gh2RfTrC8sYE6HMsgqFB1bN1rN\nZ22CvRj/dlzFyMcpOOTWP6GhypS/Jx+6w47dkYkXNjqjg/yK1CWTEtY3FKzW\n4PZIKmMjVoHKHAk9CoMEVnTrGGxm2IpW5v9znkoh5kw0VMQvDjkulud1gHEu\nfN57Ymldj4BuXJtxbIPnT4qd89eacXvEL9THWjFo8OqGEA7HXNSi2YeY7Juw\nMbdcdjlLNVdvS5GkkJZ597N23i/EHylcewMNEUHD0vpkXoQVarTf+T8kUfsg\nuNcajHZAjSw93O8A05fEl1BImngoquGqLQTavAgL0Q0Yh/sa0fo0eE+8BdtA\n2TjFZ62hzo6CgqVIdJSLAuuQgkdRkYN/fK+r8jdpkeMW6fIpes2rvTBY3tqQ\nP1Nv1XpOGuwy3RM7q12lO1H3kcOjgythZQNS+j0HjR5D51+RTUhnosONNmqs\n4R6fRT/KtucaXm526nI++0JZwe02dopc0mCgjw0cBUKbko429PvJ9dW8hvnc\nZ9uH\r\n=SlUU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4qntOu6RL8GyOFAsIyI71Cm0GAEo27FkmnWA5gtiqJgIhANu7QWO4ktsBUZ36DjE0UT9gX45/LYmoz24FvrF+A9Mt"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-26--15-21_1622042500789_0.5781080444912909"},"_hasShrinkwrap":false},"0.0.117":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.117","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"ab205424b01cac1bba84eac094ae7938c442207b","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.117","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-3WWZaP4JI/Ba4d/koUvFTXnAEMq7A04erq/brsNCjH4zWPyHy/7o7gEH+r2LoAkd1qMX8esYpdCWUfa2Z2xJjQ==","shasum":"0d47441d65ebe95086a3bd30200a269a8a5cc3d9","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.117.tgz","fileCount":12,"unpackedSize":54985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgs1JvCRA9TVsSAnZWagAANZ4QAKG7McbvdAs2zN76v6PK\nONkf4/1lbpe/PZ1+Lo6LVDFYlwNXR90T2J+/krw0wnsuP3+Mwma+oj58PJ9R\nj0simSaELzbzMAmvEzFEEKU7nFcG5nu3+j9/ds8R1hxwQlWW0475XrJ0NDsT\ndp5ZRuikyeFx5UTCYkmczLABU6hpwQmVkmtfG1P1A0bNF4Rfw0y5PmJQA7kq\n+eHqAziw6WTlwCAaxqcYpKeB0TrrHpRjko/8nGFuk1OPO7kytROjV8JV9Ssj\nRQF0oy4TFlBqeX9TB4Hcm2K020e/iv6qUmo1cfFV9zCTRS92SW+YKFTuEewx\nyvV7KxC8tb/S3yWV/iNnU7kl04ks71vLi5tEjSrTWGR13cMRW6CLBowGtza+\ntm6mECwEEdJ1avFsuo7KDdd4XOEMnJe5VJndFqicpzEUeyW8kUBk5iePMDWC\nGMnRRHgmG5QGP+EV3ysv6tkti/kieDCffrJ4xUfgtAlKSwZC3Q3/FHycul2b\nUF+9OzbsY9Su05htJFHGT6A8XECYev38s66SYPYoemliU5BHqHoEPi0lfCcl\nue7/I+aiOKW3xqFqbBmNmBXEe/t11tb6Cvp+mRnI62Gn0A9fpGpRrJ+kL90w\nRGu8yzpbM9ahMjEqDKmjON90cSpZscfjfokKJqzONlXmjWaz4/W+P+6lhDkU\nhmEx\r\n=eSvN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFadauAowv1covy+3HsaMYgHKPJtx5pdPLsiZBmkVbUoAiBrSKV2ki5M4p8+UL1oMiz6ash5ikuFO/0ynRbDhxl47w=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.117_1622364782849_0.3340776321504275"},"_hasShrinkwrap":false},"0.0.0-2021-05-31--15-02":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-05-31--15-02","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/instrumentation":"^0.19.0","@opentelemetry/semantic-conventions":"^0.19.0"},"gitHead":"9afd902ff7568770e4b99e873d9f833dd70baf3a","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-05-31--15-02","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-/g75QI9e+ExVCnUO/R7cZWr4awpjkKRV+jeNMdfRcUGKXDfKEvT5zvr7WdP4ya2zQYmdU3tr7am2J3yFq4ir/Q==","shasum":"fe7facd1c7b991ae7fbf6fee5651f0eeb08c5292","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-05-31--15-02.tgz","fileCount":12,"unpackedSize":55033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtPrKCRA9TVsSAnZWagAAHH4P+wZpKmqLGLMDy3+XP3tI\nmzAGLR5XMx9TEmCwBVUmJ5CZ/cAEAWNSv6zOO+sHfmSh1drrs/7MIIlS12B3\n9xjhkJMZPyxCNvrpCNMESCjJO+ym1vU6aqpx/+y9UedR/tpiIZTiHVonpgRM\nxSRYWEDJZAANUK2qxMC5/gjBzY5RiE6Sf/GwMrPC1wjWnQXyPJGDpXFd1SeE\ncDzwBO6plP7AXppGTrsxPJ02KgmY6f6UYYegbMFpQa8NwvNICaT3pmZiSynD\n3+zol3DDOWZWSCaNaOhLoVgrjs+a5PvDTiMfTBspo1f1w/h6H8zxC3ADeEob\nrLrKo4VYANRJWPbEVMvrdhC5erauf2siwJ7O9BZO/EoduwIOk0pzuwm17O4q\nLrUs54/8byebDokgTda5SmiwDxbjqZSTqTdlh0Ji9PoS3abQZ0C/tzBCEyYV\nTGIvYZeCpk8LGT7LgpQY/KIMwQgYBlafXyU3SrAejmdcVj7eT9YQPomZpOnP\nfzCExAxVp5u9HmihPcvFroor7ahY7QG3vHMi3hDBeejhUSFwkolmMKqjByxs\nNV9FAKhuy4mHRrc9Dkxk+69wAJzuDHLgTx4pDOb5GOrP2uS3FHmnQVMZOd3n\nCI1idbgr570H9qTP9GlwF45fkYALsMd+oxjRQfzim8eJLpkMkEpVkl3D7T8I\nyrL8\r\n=3dEB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsbyzwcNIx4XyiJJABzQRkwBCdCDzTJIWhzHUJ+ipblAiEA0ASfZSfAz3WBORz/wLPzXThvpVHAa3iB5b8I1ESeXN8="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-05-31--15-02_1622473417994_0.044162966435340234"},"_hasShrinkwrap":false},"0.0.0-2021-06-09--08-13":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-06-09--08-13","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"^0.20.0","@opentelemetry/instrumentation":"^0.20.0","@opentelemetry/semantic-conventions":"^0.20.0"},"gitHead":"f5054f06b0f0bc7590e990a2820da8ce3dc1d4f8","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-06-09--08-13","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-ywnl8KXGeBnOxTTxM1Y4rzcYN3PLoceCTN0zztU+wPUzLAoAeWBtx0Jz8UDdAsKEE+gWy2qVKK8QWluVj7Wh0w==","shasum":"cd71bba179279273e2a7f8cc34b6a8d35ccfa6c1","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-06-09--08-13.tgz","fileCount":12,"unpackedSize":55053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwHg+CRA9TVsSAnZWagAAk3gP/376VfYp4oz2kWqCGtqV\n6Og1HPLWyQxLqM3y6+qR6p0M+xaHlmfG48kDR216KHS22oIUs7tFqlCa1JPs\nbwrFxInTkvBNWjfJzUb58XlwzPUpV/dKFROQP3Wv9/3UuVDLrtufUA9Ur5/h\nkIYFTyUW1wkatPSzpFYYY7jMq0rfzivgr9LwudIxYbCxYfQMaCra0AuMSTKM\ndp1NHLA7E7M9FTxk/lIwT66pnapMnuHu/ltECgpqo8iwgVN/5T7Inh+LUR4A\n3s5RTj0jIerWCnvTyOfYLYekXBLq6S5Y/ZE7MLA33nwRuL4Ce3YxAIFDWLek\nr9TAjaECg7KtEp3yw6eW8LbYRI5zP625YEAVB8YauXsak7JWmuWOysVCTxhA\nt8WLz/qzB33c6Amf2ZY83pf8TugNMoOnSg+agVSokgNhcJ2nSSkzJsTxLzJZ\nsY2OmJ4720La6SZV0meEegF9i8T1WR3l6Jjjb7jshT139HHPN2zMUjWLv2Es\nO7GE7CFug+0jPFnwvtaNKxXtM6c2MP2xZF5XkEzFd7JPu7iElN/WPcQtJlSO\nCjgWY6vjoFudcc1YhDGk8/BtdS+aMMkVjfyo86cILjjdl4fjqFTz+La75z60\nUIqvyWgxanoNUmB7tSOkRqlUvln9YkTszIV5+BhbzEHFSrP49z8dkssra5V3\n0AXP\r\n=cQ6c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/wWVVW7aRzTKNqDZ7nCPpFO6vPWU4UOwkrZnPWFlOagIhAIZcQ2SOsMrnqWXfn+Y0YAcHOSpP8bj1wr3hUfiKA7xj"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-06-09--08-13_1623226430448_0.6758611217470571"},"_hasShrinkwrap":false},"0.0.0-2021-06-15--13-22":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-06-15--13-22","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/semantic-conventions":"0.20.0"},"gitHead":"34f84e5686dfeb8f0461925eb84669b99d8e0822","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-06-15--13-22","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-kd+x5II+JhpmSC4VsLCI7DqMze5ZCHZiF0FBv4LPcuKgSwaafJodlOKVXOOFyHhHhMJb38a0Fg7haKFHpc0bWg==","shasum":"18d4e705e3993872566cfe5e665d6fd70c473a8d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-06-15--13-22.tgz","fileCount":12,"unpackedSize":55050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyKmlCRA9TVsSAnZWagAA6O0QAI+7FJQ04WjHVTe0a9sm\n3NRIuDO9hOzfkNZA1/25EI7ZC5ahr7gMZ2lyY6LZmOMqqxRrsQgESEJXh5S/\n36pCvrsXUUl9rtc4HmODmrrokoQDMf8hf1Z0NNPPFZKUippRbaWKeUAAEmm2\nIVggCDgCWsaum0esWaSIsga95013LxhNX+xoUXur3Fdk4bV9ok27cUdbPFNn\nRoUS//QXftMzAVIxD3PaBXG/mUC31xMj8B517rAhFkT9nUuh2Q7bJYEsYgin\nclZS7OBjW6DkThzIumeWdv/t8SuUMDVNFn8wlM9YNuAfkVDl9HIwwbanwk1x\nZu6UhB01lb7Dv+KVI3zkr7kH/hPtCj4Q5bcq10xFubuUZLW+i+8iGVFcLwg9\n1xAbaR6vlvAiWJmcfPyBCl3iqbq6JXqCR7REPOyOM1V0HkL9wnq26TDGQ320\nZVQ/DIaXCpXlgZPvBwJsVwkWLjOiZ64OQHTBn/W4FLy4ovlXqED0ZiKMKai1\nbok5pkNqwINtc5LNb+E5r+yF+Hgsayyb+vEre31ItmFdtbcHBtM+sK6qB7cq\nu49FQUwNpY8ptltK7urlk91moKAkPFOnn66W+o+AtVLjWU+4hI2GGBEFov9k\nSWwuCSfi95czd+sj53NDxeJs2uHxq7ySv+aezUtaN0m+z6sjGKEgWBaSCLf/\n9GDC\r\n=bKsr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGS47C8omODnGxPPL0f3wKOzenmiXCRZGMMQvSQYHdsfAiEAymfm7Q4EFI0B8Tj0xZfXXJ7Fx+pehL3NNqLc2OeaFRU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-06-15--13-22_1623763365644_0.16457689438259337"},"_hasShrinkwrap":false},"0.0.0-2021-06-17--15-03":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-06-17--15-03","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/semantic-conventions":"0.20.0"},"gitHead":"8bc96882d27c4fe234f6b94b5018b9484a3715d0","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-06-17--15-03","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-LcWJ7Aux3nN4MkrS7uuQqc2HUXwLKWIvPUtWJJV8uuridT9C+ZZq6JimjA3mkQotY3Ysh7tWPFXX8VKrUyguMQ==","shasum":"bd59c667a44431104d329314aae040b8eaf88d1c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-06-17--15-03.tgz","fileCount":12,"unpackedSize":55050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy2RTCRA9TVsSAnZWagAAi14P/3JMNZeLUe8kcz4RvmjL\nqqeur0i0/Q3cn1yZRF/vhwGKbz8v0i3ePA4r98BKxvpG+sOZObylnM5sgnDF\nJpro7lw/iOe7K8T9loJgrn+wTLETTGC6fYeW/ruIshPEA79J2Yqk+2LXlDMa\nWhAjBfoQTdRjtom3wX1ORYQM2CJ9ipx6UdL5nuIpaV1kt6Cu52cuoZwJb+Rw\nRAQCV8Qoo4erdgevQLdanlQh2GXcKf1v1Gtf8PhM1W5iiiHVH4bILVZfZISZ\naXlrqdBd/O6BFIUT/gQMwfQcA+hpPB93i7kxtLK1srx+zfHWPMoWnyErjEoo\nYeupTGlu7Nwr+4Qg9wvk8bjYcTjRg2Waof3sbtEStb+WgbML/FHFH38FqZaT\nWsgK3IReR3M5JxQZprhKllOiP+Vt72GFx0OUiEqZ2nZ8lW8WoWhFpVVH+7mt\nRalfx2yPi3EIn58jbzJos7gO41P3+VhPykOyN1nnfc66tSqzwTGWlIgLh1iL\nNuxb6rS/WMYN+hjp8dLxN2NLIlwdSbkRG6/JZhDDqcq2Q2iGSjxOS+p/rUVo\nTS44IZe8NSS9Rn7lFfEkf0QCjWptqvsmVbhQYM5B1afo41SBt9Pnd6vJ5Uie\n+aooK1AV+bc3VbdahVNya/GVdTNruzmhMZq0f8bTbnMy3KdgAkODW+Sy1XV5\nvkmU\r\n=sBhS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFaYU2uf0ejgt3Yw07j4DNBSk4yBeZ0MQFML5hFYlOFAIgcWyTi0Ki2+S3ZttlQczileaAQB7VT1Ov2pZH7o1JCfw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-06-17--15-03_1623942227553_0.6888552708284983"},"_hasShrinkwrap":false},"0.0.118":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.118","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/semantic-conventions":"0.20.0"},"gitHead":"f6cfe4b463c53afdeea598a9a9574fd706a0aabb","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.118","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-88YkYypXtab93RBCwXSga54dXQLs3HsSw/LZfFdgbsWKdv1HeXWF1ga4SsFDfg7ZQRmUh4LN/Zbb7jNhkh4yOw==","shasum":"1a4483d2e80e7392a587e2fb584e74f30b4749f0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.118.tgz","fileCount":12,"unpackedSize":55201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzwMxCRA9TVsSAnZWagAABWwQAIYLNko60iooPoXYHnet\nc1V95836tLPl8UifL/nJU1wG4sK/54M4NWGLhHyObsF5FG55CnbWaSRsL7uo\nG6GDLe2XPhye8rHOsZYXz13ktzxiiTNCJw+3TKymIYePt1NLFHah93/dn5yL\nNMLBBjR81gXpxAIHAhiFa5tur3PfWnRwxVRpjsDWT49L5VsOtneZ5fhW73bX\n/doopaITo5gCoKL3Vsfi55GQ9X34HCJm6djtsRKZniZSFVpqjjoYrmWC4xqt\nrgTsHsAXQNJn4TulBXV5EZqtXsCD1AKx4mg3VwLY8A3H7vJIp5ck1/o79ze+\nnJ5rPPGCITweQS3ZMEKLXN4zjwj0pl7NPqZCxbfnlvtj8OdJ2fFOEYcGpQ+J\nX3zk65xmyXCHIDDGpLheHzdQ5J6BWzSrsuR4wPWIbbrISPMCQOToaNjZh+9i\nUrMe3aXIDhzaUs80eksIV+vkki42xwstr5R+lqQBwOoNIZZMjiVw8TUTVSPD\nVXlI3f0KacZwTK7754X63HBqVSwPTvOYKITVrU88DwaHt+vyAINh8aJHKjcX\noMLkqVkzl1I7G7+yKyWl34v+F6lNq4Zc+X5VeCPA4CXoPjTBJClMt1iEKCX3\nxVXR6P2q/4N32TnOQQVru0mQ1ih8v89eWNB090sF2lUru/L4R/jk02Ied1Z7\nx5Rq\r\n=QEZ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTYUZbyaAGToO5yRdhzj6AjgdDTS2HFDxDSK8iFPBrZAIgIRO67p15DiupiRUJRssozX480TkY/c2QWU/E2r8zoyc="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.118_1624179505412_0.20209904211197438"},"_hasShrinkwrap":false},"0.0.0-2021-06-23--08-28":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-06-23--08-28","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0"},"gitHead":"f5fa541b5e2643604b82306f6074d714640dd8af","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-06-23--08-28","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-XYC/FF6pzbVZ+M/tnfw/Y3BcBdZjKbJn4i2aGxu/SBL1feJy9C+w7kG7yF87bFyV4KEXjJ4P+IIWyMrEGs64lg==","shasum":"5986d191eda86baa8462937cdeb5837730656e4c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-06-23--08-28.tgz","fileCount":12,"unpackedSize":55249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0vDBCRA9TVsSAnZWagAA9A0P/1WIhd+EUC8e+VMbEZ29\nYVZz6r3rw342Qsig2egCf+GnT02jYgUpx4OjmfjCh4DBdiUA8cGd0n5+zcRU\nO06xDlldCtvNzPvYuGXEM2fXTueLp/5q+yEmJ3kdnqA4P0ShdAEYDqhPmQ+F\nyBi4Ptl7nq3qeGlbNMphmuRf//TP1ZXNTfXQVtDtnDCK2FyUMpd9BIU0FRan\nwHAo7CoR9hHbbBmJUZKcIPGtricFwHu6rIHVqpQAkd/UndEuBI/KgZkXfk28\nf6itI3K17m+PgVeu/rpazG5hRpm6oq62i7+eZI1le8zIqJ/axnDGbUDojoH7\noeMTCuPNp1jWTLgdNxN7OMI7avj4prj2DpVdtL17w5PSdk5iFUVy1vjJgGck\nVYBxf06LIq4EpjGj0BpVV7+Fae2on/7HrE88wXLaumw0LMbDGJgXR2WYfWFt\n2oa024jNPkjp4Crnz28Hn+NlZnSLx8CsOgruz2GrqpduGsA50KQQ7+oIwvsp\npkWJMDphjFQevDM5ezgVo4DQdx2YKlNaBKrQfejvFeqlk/Hfjp6/2hHFP8w6\nqZMnh0AREV/Pvz8cY8PnJW2OQqOOsGi4KOBGytqiwWZPA3StblIhlfxGadIu\npsyexJ7EXhptKUqvPrIJJNjN1nE3mnjvT7xsd1KKHKmpq3LrwF5ZKDH+2t+H\nXf/B\r\n=6Ui7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFJhOMiiSKzZpZOYmEdEPJVpJ3E9hD8YL9iKuH1mZT9AiBBSGZC4TeBQ9Uy3sR1ojbvYfVZkrP/zO3q4Uz3R/Fyzw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-06-23--08-28_1624436928944_0.6788234653113572"},"_hasShrinkwrap":false},"0.0.0-2021-06-23--15-16":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-06-23--15-16","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0"},"gitHead":"cc9e1774f9e59c997936fb1cb0cec55be8b42005","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-06-23--15-16","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-5zrnWeackWrkQFy5GWEmc8epXNJhPG4EwlGsw/zq0vFdM8mVQg9A7wVntTjygUWJjN5zxbt5w1shL04BhHjMwA==","shasum":"51c334a82944cad8b8f177b74d22eb8036b5aa59","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-06-23--15-16.tgz","fileCount":12,"unpackedSize":55249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg01BVCRA9TVsSAnZWagAARAsP/RcGn7Fp9c8C18H7PniG\nx9KzPzaw3OrZJ4rpG9Za4C6W6NXLtrpl9ndK5Cr0SKxXgg4clQwLTB+40ODv\nWVpkaOByxNrIboLfQlTMtLPZ9osegkN/ht0BU/+XhMqIv46WjWmFproL0Nj5\n5bRMizhx96RG5RRgDo0cCcDf+DloX1J62Yta41RyEfHTgp26wn0R6RHJ86S+\nIR9IKdd85DkLV+/Hqh0plJbwxgtGmJ1kRKzFVow72iCzlecEyBxY68rdOKPY\nxrBwNyDRzuGe5CKPERgCdi8BtmcWLlRBKxGyeI5KgB/WrX/vYl8+eq8aGvn6\n4Qv+YzLCTHL+6TElscq4XCOq+c27mIwFnhouQc1FygDYsO89aKqAHo08Msm4\nc6eM4huG+2gBGg7zaS0xsSncduh19P5PtMCf7aMpbynouxJuqpTwXhdC6RZn\nUzlPeehkPIIgvdv2PXzT9I8GS2WqhhwDhOuZCjBtVE8lwhOPXGi6rKsrvMv+\na4motBOqEjg4rWtakBtuIW3F3+2pLVIiIuS1OBhYWgQZD6yzAbZErilbHlDh\njQEKgQf6qrZz9WpBkFw86ZKRDXvLVXBqWxe3nvxJ7WrfiIyN4LtdWxWFmsPi\nbJGxDhl7yeDLYpKQiYIUmdLus9rSDnYqF5lFle4sDqR2Ity4TtrL9mubW2uh\nSfgY\r\n=cLNx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqrthxFrKbXGnQrl8jwRwTHFGPoU85tDlEed9ruQ74LAIgODR3xR+k3NTPCJ+Q9N8Wg5TAa8kH6EdruMZK//LQd4s="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-06-23--15-16_1624461397449_0.029470705804162778"},"_hasShrinkwrap":false},"0.0.0-2021-06-29--15-16":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-06-29--15-16","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0"},"gitHead":"adae2c8e5286b60df238ea271940517f2ff22c7b","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-06-29--15-16","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-onIGwUXPekHMjY0NUgTWzV6jkRmhZ4ATD3FPgeZzwM/Z7xZtWaLJYQ7ygSQ13vqgiMiegjWDesdqRhpmjG/NNQ==","shasum":"41e485892c5d8ba5c1a8a7468faaa75b5796c923","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-06-29--15-16.tgz","fileCount":12,"unpackedSize":55249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2zloCRA9TVsSAnZWagAACj0P/3jpNEHltu38bYKv0NOJ\n2+OTZyHaYIU2HrIllmWR4+VtfLmJqEgMDuRq/J0NL6jg0404dJBH5C/p3fWi\nJMeNLjm4nDOV909bA6CJdZe9ZvHKujIn4XIANTpDObn2E9NTGvlbF989x5Jl\nxMr4k6OlrcWOxXmnx5qSHKYZe9yeNcygCBgl69sehEh3AErtg8rMFbHyvLd7\nDREvjxgjNPgMVptVMJ8hwM4y3D6pvbSfFQH8+EXZ41onSI0AxLR2NW8SQku9\ncRdTspNfCXQ4bKY3zWUSEjxBLppdOgqzGlZtKbM6GxDlgFPF9nqM4ZAfDDff\nb1GlLoKIpKC2rhgSUnps+5Q1DVfkawlKI+Fwdn4KQOG5mLUaqi7u+sMo6lY0\nocNheYDfbY9vQAvD9gdTe5/Ild1Vd6oX2Rl36mZhcrUZsEkie2JvVPfVdt4J\nuLZ2HHC6E1MsJDpKIsm7+85b45NgvrYnz0IeNWeNVhvInTEbPHO1Rsr4E5YX\nVCqjZg0xGM5sDimwm79HXd84cc8T17Kjcf06afMxGEHWls9EZK4q5b8DN6RZ\niwUieDQbANWOEC1pMRvAo7oVeHdI/Vtz6EPN9InU7KEBkep78p0DFqbYTr6Q\nuOb1Jb/lw3ypKPX/t5rXDgOdhC/hafRcX53+RbDmMT7YAXcVP8OZBLX7ojaS\n5ifz\r\n=ELqy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQGVXZYQzUvCm5RGeCrSq6NqpJLH4ZH4faQDV4MvZikwIgRCnyX7nDAeFSCdABYMkfDNfAhBm0SC3/13zhU2AytB4="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-06-29--15-16_1624979815850_0.1921874348999575"},"_hasShrinkwrap":false},"0.0.119":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.119","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0"},"gitHead":"5d26527b82c3a4547dfbf711b9dae00e638fef19","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.119","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-lvDWi2U426X4kDYK+Emm51Eo6pWcd2FB7qpEpPr6MeP5I96kX3Es7LrtMGtRKJvJqAdalpwGxl2jXsIzn4X+fg==","shasum":"ab095c71d69f5c7b8cedc1e6d39a9d1eaf3019de","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.119.tgz","fileCount":16,"unpackedSize":103664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4vYTCRA9TVsSAnZWagAAKK0P/3KssAM3AjUaRWEtqUF8\nKuSINioaK22cy5nrtDJSGqkww/3IU6eq8gLu8FscLdh0P6m7fm4fL7xtd7Lk\nSz5Zsq45anpT6KCdHCsB2T7zMTfZ7z2kVqfe6/1XszdwJbyjGRB4Tv2FeVQ1\ndYWa1ADjeoMS10pQqN2KsdiZaNXe5310JZAS7T7pelcTkDQDr861Jemh0aLq\nkgROoveBJoN5wfhUVXkboXX6egr2f+Gjq+my47Awbn7phyeinzJNkyxgfrzx\nNegdyUCBrPLq8RrkKqA88vNaESGH3bZ69oM/fZKqlk1UgNa/2sZhV9LsoiCY\n8dUIvkgS3s7HS+1Uk/uKGpmAFfHpL9+NZX7PQSRatG8ujlScD0pysfbdnqPT\nZTKtPSPz1NXDuj4OOGxYEptyRbF9eALOrZg1Uq9gf2koAeQPmMUeR11XF3AX\nYlG9hLcwtrA0YxKcbcuI3jyfpKP4KJNpZpAE0jj6kxu+y0ux2XXWU2HV5Yqi\nFAFR62dQbcbB/FLuPT+Cikf5ORUs7HsrmFA92dXc5ENoBld4gdveXlHVVMY2\nAHk4hMAN3eQ4ofZjBZvuNvHmFpsGmUahoMOnsdKdw29HU3MqxHtwoLoYXMS1\nIWOh9cwJKjOXgkPre6+wsL+L+ThIMFc7U7+1TQZrkWlIEN1wBPCiNsWRae2c\nQsv/\r\n=/VnN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb1t8gJk0Q4oANkGNPu5LewcZR0Ker99gjkbumYN+6kQIgUodtUJIO8gLry2EJo71CbeyJxXUtDGDv4Z1QnNwWTFs="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.119_1625486867464_0.27367857914882565"},"_hasShrinkwrap":false},"0.0.0-2021-07-05--14-53":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-07-05--14-53","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.1","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0"},"gitHead":"53624cf7e886a73008f28e17b69963aba8ad2eba","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-07-05--14-53","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-wI/x5x3OrKego95I7dh1M3aazRD32sz8XvUuvrvsKU3Mt+gHz1Z1u8PFZFoguB6uj61aenkUYQ/Cbq/YmH3Mvw==","shasum":"6a7fe6577d693943ac551ea6aa679bb59858f419","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-07-05--14-53.tgz","fileCount":16,"unpackedSize":103729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4xzsCRA9TVsSAnZWagAAFJUQAKCO9fNvVsYQlZih6GhD\n7Zt3kMsZlkYRCyI2l4eLiZuewwSpHtjG56s9x04g3XDEwCyIiHBt/i8pjfLG\nhUMPocUXobT8ZOa03BxfJBcT0o2IeO62T8GfKwH9/1zzqTffwO0rBlf+476U\nIMcw/AfCuTN2mXdqEt7mqd9yuwihn0oQR9bMM2cpaQNFeUqm2efmELxlk3gq\nG5mIef4+1irwFlKNkBfCK9SBnuD4127PSEYFTrKyj+nUri9NTp4eVbKQkJfY\n0JuwyXz5M4jibFSymhfSdzn4wT5Q/f9oGwV93ygGHRytdGE/KtYCEQcCcwjF\nce+f0+ZBkY+b7sUsc0h3jLQfcPW8pFRhwXAbzF8WMmLsSfIe2GN1fAQJJ4NZ\nr4j8lCyj7BhDg7CqxAMfT9g9xaOz4UmvWrHR7X4Fvidnw4p3Eq4XaYE3cbF0\nj2Uxu6mJFvOvh6vRPWN4pm4ZPW92E2kZJYZxi4XUpcvoqoPKd//SS0OVcrvw\nZVmMWqqFg1/helJmsHsknLTgGYCPQp2Oza5sTrwI7zCo+R3DTILk4RDS4eN7\nCgfe8Ep4bH/G6xndWRZK1jO+5290UcXvOX94BE8g3lbH6UX2QBGeaPeWtvIi\n9gUycAevPKPxqpgHCyCkyNQGLQMDXlcCJtZDXvD02yqa1fAer6VZAvdR7gpH\n4dkM\r\n=vSD/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqcr9YzAOign6wT3RzMvgZ10R5hwvq26u2iDDAo9WIFQIgHnMW1QuIwWGFpf4Ne9ESlsCKRhhxsjMYLtWnjB4W4c0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-07-05--14-53_1625496812555_0.3221012523145699"},"_hasShrinkwrap":false},"0.0.120":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.120","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.1","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0"},"gitHead":"ddde3a9d59479a46f41d95d5b5e24d40d73797db","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.120","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-Oj9+APsIA+rbjhC42SpATedFh2/n/zVHJJXdgPy/9mOnkFFwzVhz3IYESvlA7zNrW1dyCC8LAxnAE2sUN1NkMg==","shasum":"95d1fdbd2f6c002f8a5bf619a7224d8a030359c0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.120.tgz","fileCount":16,"unpackedSize":104022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5B3gCRA9TVsSAnZWagAA37wP/31ai6uG6eMHVpC/nV6O\nBjeibuf8MgXzWgMSRX6Yj3EmEFaGUcF9Rw+ssFfxF9eQvrvA+x8UE9HehnKu\n92Q2Dxocr6CpUUz48/d5A6ElFl5fn6m5CrqbTuFCEqhnHa1ag85rbtIOVQra\nBZ9LHqKUuqpIkVUkHAqiPXptUWIaZFFWrSH274Tnk8nh9/F3uFdbEUMyo42w\n4nWyOY11hKvDU3orXO8+LGLbwci6S/yrzJatOkVYdvvLNup2NwO2cFe0mqWP\nwbqaHxEkODISvcQrcjP1PhVEFIdKuEqKRLifxxLb2iIpAyJKr/WI0lyT290Q\nEkDj5Gjd1cjzZ641dGgy/+GjDMGtacVrwdvtWBbnuy5xcm23qLMHG0G5SzN6\nXpiq7gGLXnShSdZA1zUYtPttap08FdwlbK8sybaG6N1fHkKTTMfeQYtVS9Dy\ni0RKT194+anwb+ytAwK61C7gYf8KX1dyb2SYiWEMU1mhiTbKIy1YAvqNrGRl\nCNyUhqNSZMMmjurr07ApmAZxTk9PAHRyxVkzMy4VlCuz4TP9LPwVXbfXHwOl\nuINdBa2WNyC61p5/QCt/RFHw/Rc00gxMeM3Q2iAf4uDRVHwEVgXpUfL/JXpc\nbhjKM8k/t0/h9CUlunM5A6Rw9HG/oV/Yg2D/4qZdCwdYoS8wtXKIYCr4hAYo\nL7sq\r\n=rfEL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0MRio7CYWUlzmWbhAcbnUqmdzCcQXuFWva7mwi3KElAIgVu8UvYEn2uiueaNMPvKQqYm1yxUXNR5EG8r19ZWigwQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.120_1625562591884_0.6800689725033893"},"_hasShrinkwrap":false},"0.0.121":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.121","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.1","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0"},"gitHead":"143da1456e730d428cf3655f6cbc17d4cb9e9252","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.121","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-rHoBQaEBSwzeKAK2g2mPl4ozx86BbwrVugBJosTETNZevDwm+uhafcs16/5Joc7nteQ0y6NLLiMgOIUG68eezw==","shasum":"35d9d0078dc69cfb79df4d424e999217865d891b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.121.tgz","fileCount":16,"unpackedSize":104221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5C7NCRA9TVsSAnZWagAAH2sP/1NQT1YEAklqHtHLn6QU\ny7BgEbAzH1t0GPuFhVOd/mB0pN4UZ7o09P45AfvsHuFAA5Has1R7kCCuNEGH\n97zHl8ChQ8IFi7gK+YZWcz1hnKe0eINKGXsCCV1eUYsGEtvRNUMYvZxEbsko\nvkPWIMFAuG5Qd/1YxY+n0SEYEVLqQk+f2jQlMNUBUwKslW5SVxtiYvjMxkmE\nIYElN0E3Kk6D+KC0LNh6w+XiSdi7lhKWlUuXpxfhPBkk5GKXH8HiSHN8870/\nmTJUe8QEjSCpCFHppHsFvnedINQuxIR8NOrjNzJ1wP5OYE5SrdUQddX2fmk5\nzhCVLtn8DuFiIeDlC2T9bfUgv8FSPsE1EXw9i0ol5FP5MrtBFfrPMFdiiVlG\nJg5x92G4A7+udWP9aqCkJUXzZEngauEL+mywG8CyHWArR37Ttfvyv+Ydz4SP\nyYRL4G9F5oUPr1kKQGgj+gh2GN1lCzHoyIFYk02BE9hn13hJIACvB5R1z2eo\n/r284lG1tvIgC+f3tXTu4prP9LCf622g/kFKH+4585tcv7Dlif91qxXWNDxm\nZa7RZcVypZ+xe+PHzpWIBdzf9+38aIeDh/jNKbOBfQgNyFt/bqM3GhydSkK+\n4Y3dG7YypfRJhfYCQaDoFAIDPIoR1OPNUktghBQ79UNf1HfAv63kKAEB7KVi\nHtbk\r\n=ENNR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICF49nhQlsu04s3H7uWngqqiPHWaLreaEubeh19z/CaeAiBi+T7kb7O4lUFBrGJ98UtAw3p/VZeqUfUrOfqcolKlFQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.121_1625566925047_0.4507902152881511"},"_hasShrinkwrap":false},"0.0.0-2021-07-07--15-00":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-07-07--15-00","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.1","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0"},"gitHead":"bb598654095a9a0d7a257a274c1fa39825de6847","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-07-07--15-00","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-IooFCK4MpPOpPi5rHuxr5dhoafPHCe/lzPFFThvZ+fQUZUrRM89dRuh7wsaubCE8hl9CrDxl2cg1ai7CnnFA9w==","shasum":"692490cd56accb075de9342bcf5135c1d49d4bdc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-07-07--15-00.tgz","fileCount":16,"unpackedSize":104287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5cGrCRA9TVsSAnZWagAAiLcP/355ZkOyD8WY8vciCekG\n2qP7eT3y1hxpEkC/dX4cn0XSZRpnE7K3DhNPslmKTI2F6/IphcSYwINsG2Jg\nDVMccH7w83ysDG19fGGTZdn8FbfzifE0lkfGUXTbEc8QDtwx3dUgtQU0lkr8\n6uX1bUHmktvF6Kt3T2JHEqd+OsGYt09FpQ1nPPYSFGqdENPaiGLRLElU6tqc\nxlJ1+Ljpqusxp3H3snxc6j/YU6Dm2CTMeBsF5fbPXlUjYXuKVmjjkuj64bVl\nc8i62Ve0wyJxBrVHtlgP8WCB/TOx0o1HnvalV/ISZ71JHKeiw0Cl67YW0YmD\nZEEvbOGn4Bh17dp6oscc85/jyLMRULnBlh5+aofdEHUCqp99/vg/EJ9RgXUV\n3ALjmhlrT+yKwU8vdEL/lbSa+njaH/pB1GgxGrDMwwjOpCuk9rI86JlZxnU7\nWzeG8n7+c9y/AoJX3VDjIiw8FEVmpKzXfOWwBti4+xbC7Dv5B+03roeWuJuW\no/C3RnQ9woTcxWtljVcfosrV5Cdxor4IzJCRET0ryy/J6sLFnBy+UYGIujA7\nPv+YLGUh8t/+cufSdYom4K10Za6IhuXFsmwL/Qc1GNvcvFyVYB34yLrUOLO4\n1cwNZMgCfNiWPQ3pOkmEWrMTzUw8ZKyMNxiBt4asXdrVE3nlwE6kxTmsbh9E\nnV0u\r\n=a6DW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfaLtiRufLbFwFuapvQZQTfnr0JSLVryCMvaEaTzuo9AiEA4i4o1gGyNLW8xfXqvK1tsu6MXBF5usOJduHe56vyO9M="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-07-07--15-00_1625670059073_0.04407281047576461"},"_hasShrinkwrap":false},"0.0.122":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.122","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.1","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0"},"gitHead":"8d7e4784c154b670de9212ba500f6ed67a314478","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.122","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-tR+BLGKpN1JCmy01saR+099i7g4PFlGVBjSjOutTMe9G9vlIXqT5UWvCn6P3DFg38gGedG5bESCYchAmr7tm/A==","shasum":"c4de18830947187322afb3b41200a7ea070f5dfc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.122.tgz","fileCount":16,"unpackedSize":104420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5dCcCRA9TVsSAnZWagAAjCUP/0sijNtMhahIbCpHXvxL\n2z2E0JLqAy1CW50R6ziUopKTJJzzbtHGScMIQ/q7A65P9ZJiiu7+RSS1rWjh\nvtsO0PedYW//B7W0f8axx8dPGywCqr3Xp5+7baDgZy2dBds1SR+PZWOikmqR\ngiS4k9qpeHRIdXdbChXaUQ+Nbet/OvheJza1lVeQecU9NHX5wwGG7q6LdUIg\nhko3lLC7iT7Gz9FDpjIa/URd82Ll0VOjyAxyhwOCYUBDxAEPjSEZsIrb71Zw\n569Q/IzzLvEBzxiZ458XXRiVI0OqIbPPGlO1kg93ArBSqFIrkDOTe/PyxYYu\nbPuLtgnax+I7RFq8PjhRQhYDPa+KpGPN9gc6tuDoStwckCEq64R79o7/Xw+T\nOIYLmETCah5nDmnYq/6YOu/wg+0AE/7NKdhqJqMZdWq8utYTmec78YQw1XYe\nbGa146aB0jX1ifsJ4bLAdaLzMfYCH+BOYD0aODWGrjTgMNHOS9DzE1IsQ1SI\nrBUnDcoIfcD1p68hY2dIUMsZdfTOhwDv0CpW8qH/LrDltX1jkR5QhcFPS0DY\nKTGV3lH/Bv9PpOVT5cNCY7Hkv6U2RT0M+TRupC7oX6d+aigj4PDjTHVdg1GG\nxIpjc2ua8+18KfKIiQdboH7lxIvOCya+xrhDpzBbA8TFXvgkbqQOHV7wyqJj\n+kYR\r\n=VJGs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS5txpNxIpJ/3z0NHjB1nbQVsHu2vVrkTNHhd+K/KWRgIhAIvxXZD+D4UbNABtmnc96BYF7iLT9kjtDUgFa2qrcrNX"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.122_1625673884183_0.7605330683237568"},"_hasShrinkwrap":false},"0.0.123":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.123","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.1","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0"},"gitHead":"ca21bb5a7edf44a611bde1aed1308f57a8d59901","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.123","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-cZhy5l4RBrISt2avc/0W0aLSJwAPq/z9IdM0ZWaUQjmnbJhLkIdry5Yr7yM8JHJmjmHyE1vPxKnxEWplOXhKqA==","shasum":"49f17e8cbb052019ce44fce356d55a304443f0b2","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.123.tgz","fileCount":16,"unpackedSize":104619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7sZVCRA9TVsSAnZWagAAOJ4P/ji4guLT0NNJtP+Nfn6K\nR6tLivVJJ+Zlxz122U8ULw38d44Q+RaT9YHJVcQYXMk4YdWlofOeMSXMaM/l\nZMC59oSRNEg1K8hFrL0BUXm4GTBEaaBoUQDESsxnuXfeD6nDAbhtZaWGb7o4\nDmlXtHeoFNeeELMfGSdRvBUfOsWjBjFjSpXpxFEWPYWXhlsbWS8nHVmusfDr\nlSDDWCjgXY+iqJIi0NpURs6BRsmZ82eLDFxBY8OBmL96VC/kHFoIuImPxjNv\nhQ6K4gkQHFRSGo03PouFU4GojDC7ColMo/MYAR8KlieSgN7dg0If4mDo78nh\nY4hI1Lkwm7R950q/U20xajIC2DUNGr3iuwv0DUxMDcu0K8wsi4W99G/hdw5L\ntkqXWwZqjac5liAl/xul+mo52iwfR/9wWWpVp8WZTlOSuz4dLj6zoukiCLbz\no4nKTQZ79WedWMeogHYdvb0jgFnRfh/1YhVyEhMF7yoRuPTx8gtJ8Z1i166R\nFWR0VHZlnyiMXNPXGojPgNRadMKMvfdmCtBbdEOfEgurFhxk6BDKrMvfoJjY\npZdfEfqBVradtVPRU1Ut71i0pESkaBhNEwHxXjCTaqoY56iNFrWuGhBmpyEM\nb6B0jnf3sU+w0mCQxDEOvWCJaFjvdzYvkL78YuuvTIRBepmDBSATWSVYkQJQ\nj6pa\r\n=ed69\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9II2H1iIGW6etEkR1wwolJCES1+2nfSAX8u5FVmCqnwIhAI5HM4l1GhkP1POLdjHblB0/mSUfXsc+yzHLHDXBR8jz"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.123_1626261077060_0.9319968643888477"},"_hasShrinkwrap":false},"0.0.0-2021-08-01--13-11":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-08-01--13-11","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.24.0","@opentelemetry/node":"0.24.0","@opentelemetry/tracing":"0.24.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.24.0","@opentelemetry/semantic-conventions":"0.24.0"},"gitHead":"a3558a2aa1b8be448ed7d936752c0b889b75424d","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\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/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-08-01--13-11","_nodeVersion":"14.17.3","_npmVersion":"lerna/3.22.1/node@v14.17.3+x64 (linux)","dist":{"integrity":"sha512-PtKBYL/48msTm8CXOI07M1Mg58yjhtjPOLyz5gSZjdiLn+NBphW3HwEBoWHe12qsqgfzeINDjV7WCa7XS8AviA==","shasum":"6cd1bf80c04342938ab7803a186e75b37be9d832","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-08-01--13-11.tgz","fileCount":16,"unpackedSize":104685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBp2LCRA9TVsSAnZWagAAcH4P/RuNTm/MVDMocuwagYq4\ndyt4HKlLFXY9YGAfyxQCV6O5To8SoR2nA7uhuALSU2KOkMSEdCSE+H7kliVJ\nidz4iCom1nwGCAmVJXju89qdok1mSfH/BQQuZuEZVLWZBdyKT2jJhpN4OYn7\n80yn0aJTt68ozgKaq0mofF7y/WdTcCHdc3z39YbP48+0yCBRY94xFBOGaxpr\nsDx3tRb1uFtPI1pKoMPVVSQXY5bpSL54kj4lTu/pX1GtUHZ6PgGQnUdqM8vC\nUj7gD5WA3X993nKZWHMqeg3RwO2d524AGxnPcn2V+zNFX+3joUKADuj4sDMS\nwEDfBS3e6LizJJ9uBk7nc2zrnxy8ADgmwNd1J0EkVbwaE2yaG+D/6IVUMHtv\nDPC74QATAHTlLI3pgaH3pDtebHWai2ci8BxiC7E/oeEDg3hsGIhAYPFY/iwZ\nljLcVw9uVMHq3pKbef/0G8NXg5pb5FSOfVD//aaJu0uzFHwYZ5DH4hhLjzKT\nfomm/tFDTgNRWhGLTkLQejyF9ilVXsCtxH7zDSL2UVFAfAx+kc9b27q5rTmK\nSiCbHu3v4ONjJ35gmduMOtwCQezWCALWoiLa8JIH/H5Wr3iJXORr+Cx/A3W7\nvTPNRdkhR/9n00BpPz1iLyK7TTCsxoYqq6WuLVty5lHBOqtbk077sXLUgPBp\nQjDA\r\n=al5g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0RNl4AnpWhpdZ/WKfYXeuH0gu3EFCPbxWzhoWTrJWjwIhALO9/RBUOO2iwSON8Fy0HRactt/9QcJslr3XXQipvDQW"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-08-01--13-11_1627823499402_0.8440560312858718"},"_hasShrinkwrap":false},"0.0.124":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.124","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.24.0","@opentelemetry/node":"0.24.0","@opentelemetry/tracing":"0.24.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.24.0","@opentelemetry/semantic-conventions":"0.24.0"},"gitHead":"46927791a75e8ad56fc7b322c34a044bb720edfa","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.124","_nodeVersion":"14.17.3","_npmVersion":"lerna/3.22.1/node@v14.17.3+x64 (linux)","dist":{"integrity":"sha512-HEbOVWT4/kcpgPdBK3gQ2MIweWo8t78+8ixhXr/8pyOC0iPWPPOpOPqP55qY4rwJJ2H3ue3V3lsqDLwmSI6LwA==","shasum":"257b8287c64ade1b12fba0f3589c5d355523c217","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.124.tgz","fileCount":16,"unpackedSize":104818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBrCICRA9TVsSAnZWagAA9E8P/3zuE1SX8X5mKYbiTDSm\nPdwwkQshuRdBWrsbzHqASGt3MlRYFc4vKF3cpVoAWB+vJtdvVK8/y+zVIXre\n1VMCTv2J6dV2AyhiZuYSQPzb6T1ZTn1kl1PuNo/l6Em7i0ZVRBoNCErfzKXX\njfovsb1UzrLopdLVByX9TmSWljjfMsG1SlLR8ckEugB4fA75hwUvK3N8A49l\nv4jvVMPb3bt/41w3Wph8Nhvh7MogAKDRgb8owKRd0OJ4qwpZOR0nv19dn8cX\npfOy7+v1SGSGaonuB+BaRuTJHSOi4vQZ1OEhHPNP+vrGENbUh7tJmnPCa2dk\nUuqhABy3zfklF025wjSo7twmFdG0qPh94fVaU5E/a+yOKxhfD/9YzlgeClJE\nAhKuecMJHHTPFIUt1AGhTeWTCQRvRsRYAMHITmkL9kK9CEQOnDgnV9APnnOo\nHsmJxgsqwRIf6WbSS0Jpuwi8G5VkLRlvcKcNcETTcpCYcUkX4xTyFcGFO7pu\nmRM9HMUtN6ua6zGj7AbhxvN66ytqpkKPAbYYWplY00S1om1jUNS46Y6sETgW\nF8DYqnEyUxnSY989Bs3H3lqKGPDJrAvYg/sMGxrQYe/Xh1rKAMUz2Acn1xVX\ndlakRRo8B7vXTDRv0/ZuIiqtGHgRnRuKtt10wsh5GklQhVNigHQE1I5C+8I8\nW99V\r\n=Tjp5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDvkw/lDdswItUd+MIa2YBGR2pxlu3itySCxcuMOmbbAiEAtGGMjX7pHNBbvjXAnWzZz6l2VGe4tq8BAVB7fduMQQU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.124_1627828360408_0.01816614606355138"},"_hasShrinkwrap":false},"0.0.0-2021-09-19--10-55":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-09-19--10-55","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0"},"gitHead":"e42bb0a786b6046be87bb339375686fa6bf93ac5","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-09-19--10-55","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-mma0psRL3b2p7Ym13ECNpbMi1hwgwgsHVmaXWlCFvdPjkXa/E8UCw8yO65uBSZwp3ffcVqXAGsgITdC9WhMT4A==","shasum":"6aab5cc9fe56ea99794af1e01ddf55069099c7e0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-09-19--10-55.tgz","fileCount":16,"unpackedSize":104921,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAF8MnErKZxnQaNjhVkrj9rJ+SIoehQK1/7qnfr2YX7KAiB1PN+g97gwwsEPKvz7kVvxoCzqieOtUZhEw9bcceXRXA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-09-19--10-55_1632048949097_0.09359082472113078"},"_hasShrinkwrap":false},"0.0.125":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.125","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0"},"gitHead":"fbb33a49e7eac5d031c29a20fb4e26f8274d3060","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.125","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-RZUV9ZrFuOYXytabqljIdO1Ih6scKAJgapZf4Y26CrrQOiqd5XLecw1+8ek19TRlwqFL77opQo1VgVpXv5gzDA==","shasum":"bab7c464ab890ee898ddafdec438464a082472d9","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.125.tgz","fileCount":16,"unpackedSize":105054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDceyTF8ztWoOB0+aC0eShsF7xddfQAb56frB8pbiGdoAiEA3sfqsfCvj4UwXQbphXamO39fLV12XPsNpevchvELnbw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.125_1632060985978_0.6125578020232605"},"_hasShrinkwrap":false},"0.0.126":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.126","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0"},"gitHead":"2b21d420c448673f3fdfe3710e4618c7d8ceffc4","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.126","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-XgtAiTpVAY09GWiYRoAj8n15E1W6hVNPYND19zXO45bKgFq+Svoh/w8Oqoc5iOBQHWYuVXR423L1ZK/74TB06g==","shasum":"11354f23b9dda9e60e0dfa8412387b866618c7d8","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.126.tgz","fileCount":16,"unpackedSize":105253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG24VeekHeh8rgzCwvBrIdV8hWO97rnn4Lv1NTkue1JXAiAr8zaingfi24SLXuUJK+oei1zlpBTDEwHdEuk5/AGrOw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.126_1632407381347_0.08393933427342049"},"_hasShrinkwrap":false},"0.0.127":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.127","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0"},"gitHead":"c5bd90f6075e1621fb4778f1335aebfcf80281e9","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.127","_nodeVersion":"14.18.0","_npmVersion":"lerna/3.22.1/node@v14.18.0+x64 (linux)","dist":{"integrity":"sha512-YptTAcJ+ZTsaV14u2YjXAGjVau3iBlB0ngBYOS/eKVK2/Qz/mU0/Fovmf7TCG/2a9bDM825D4nDhlgTkc91pmQ==","shasum":"f904f589747d1d3c85fb713b2d4fc2e9b027495d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.127.tgz","fileCount":16,"unpackedSize":105452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQ1IzsJmAxwaqUVXrhACzpTGI4aHlrNVYuROvRq8xGiAiAtiDrVLCFXm/M9yutKUVaig80kn0nzPTZRhZ4va0rRNA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.127_1633852870973_0.4559825715948205"},"_hasShrinkwrap":false},"0.0.128":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.128","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/api":"1.0.2","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0"},"gitHead":"71e0d9e7b65143ef75979b07cdb370b0f52ff216","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.128","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-QUWuYxPWLl6DcecA89+Oylvt17RP1zSrOnIhfnsfm5YIl3bo5ssYpT9lxr+cn50C+G+uchlTaGLmnNvl0NGZ0g==","shasum":"ba7ff34f90df623654495fbb5505f069d959a7db","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.128.tgz","fileCount":16,"unpackedSize":105651,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuP84PoUIWsym+hn1dV59+2E46CgJGy0HCrdTnj4T7eQIhAKVrKIu/tNWRKC5dxjFR8LgTPK7qFm/BiOtaKRtoFZeC"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.128_1635248024368_0.6314359994909138"},"_hasShrinkwrap":false},"0.0.0-2021-10-26--15-22":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-10-26--15-22","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.26.0","@opentelemetry/semantic-conventions":"1.0.0"},"gitHead":"2b1cedaf8c01a028e58c852de71f7241b68412d1","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-10-26--15-22","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-Xtvu7qiBF4CUjtQTs5M0Dvrrsa0QKl8tuB3SmQsAZnpuaHkxg3bXVv6JkDOtsJnhcByYAs5qbpK8MEIsr2Q++g==","shasum":"63ef21d93f8adb6f01c3a9219102c1bdd628c231","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-10-26--15-22.tgz","fileCount":16,"unpackedSize":105674,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDr25b2eM5FC6ddmTLfpzwvwWhyGjHwGxm0kKZYxKsFbAiEAnApjXw7N2PjyP0jjQF8iisJPJKr3XcYABlo5x5WRQE0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-10-26--15-22_1635261789645_0.029057354140871183"},"_hasShrinkwrap":false},"0.0.129":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.129","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.26.0","@opentelemetry/semantic-conventions":"1.0.0"},"gitHead":"5535a0a3c7dd727394dea4484492efa8948cf4d0","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.129","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-V1buCh9gk9e/Kpxp/B16B326ojbbM174joT7t87E7ppX7bzxEdQMVwQK5hwU/bQtfpwpKThctIosoIGDYqpa9A==","shasum":"15c268496215508899e3e737e05637e2f02ce292","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.129.tgz","fileCount":16,"unpackedSize":105807,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6Z+VjxO3S2pC9l0vu1NuQ010FJkxzICvkB1pO4I2MkAiAnH36eg/HbgHCuecw58HAa3FPsaeQhT0rVoEA7RAZ6yw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.129_1635410941382_0.19341995283616464"},"_hasShrinkwrap":false},"0.0.130":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.130","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.26.0","@opentelemetry/semantic-conventions":"1.0.0"},"gitHead":"de2f1449adc3e90eefd9dadcb9f37a5e162ea0f9","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.130","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-2jlj9cJd7oiftcnoHswhqR1UmBZMlaUYZxGi86SXHnS1LDHOv0tn6mhaac2+Dq8TsnMcNCXLosRvVE3pOwMrLw==","shasum":"61a039f22e382ae60d69364001b3a4a480986b72","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.130.tgz","fileCount":16,"unpackedSize":106006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpjkOCRA9TVsSAnZWagAAQx4QAJdOTAcdkpJ/njplesD2\n79W1CJaptXUcBMon+9bKWylyPvvXc74dK2HXeqmoI2H/98kRAAN2CmrDe9Fx\npXRnvZBPiP+cd+epEO1/qt26wgDX/8slMcylELS1BqAdUnKKsK3uYXZoz7m0\niMTX7cEfyNSytRFEInTlBvaoq7tGzfZaLN1O2TnMV4JfuIIoobjDZvTi/1BS\ndg7FHA6RGDNbchfURlU2OzWg+eGUnYR3AZ1AyIhAzSbG7cqLjWlTW4nOxvx5\ndUHWbrgWmzNZGM9Du0qYHXGlWYCV6nfX+2w1/i4+Xbnyu+LImD3j/pu8ykIq\nDDu7sKUJpYlXVP/w/f/b/2muXYyibKBOBvaXUcMGv/PoHgp19Ek1nkFWI4MD\npPEKZwSUax9OKxnwDhMw9RREjpDPzayST5dABGT0jZIwpPil9tZedvGdiTDc\nwYpIsrO8UNIFJ2TR0YKM95gJ/q/U44sLTEIFXSTjeE01ZpV/JgEFetB07x2a\nQREkspoamghHNnDwnTiMWdtvtHSQFEd9jOTHZVN2t8z+tM8dpjqX/5st5/LX\npA3b5WflTUWsQb0FqIhNFi9DjLwTMLxNBkI6uaflS3nCQRTy/dtHnte0ii5z\n0GIzhB8hrAOdvlu+cyhpUG5SsCh3nTcu3M7A2hSJ1KGaNcdaDUaIQiTxlzgR\n23y3\r\n=qs0L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt25xyLVTqFf1eFjBc8/t3hf+4veBGgbDaD5VW+wjYPQIgGHSEeQgAt7jrnwRP0w/xOoFHVQkoS5U4jfA+Oq4McKM="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.130_1638283534367_0.031090518980835036"},"_hasShrinkwrap":false},"0.0.131":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.131","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.26.0","@opentelemetry/semantic-conventions":"1.0.0"},"gitHead":"ddf7f7ec28c6747c52b8e41bcbfb0bac4044a075","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.131","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-LYHjn8DBXyAbff1lwo5EVrXX/ZlqFix8FWZFw1gRIBt7tGrNshXDyGmOTeK0wN+9cd5GyUuZXtY9WL2/Ygq3sg==","shasum":"c0d5a4bb83f140cd0f783fee69c43d48fc6a32a0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.131.tgz","fileCount":16,"unpackedSize":106205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhse2wCRA9TVsSAnZWagAATScQAI7g2NLdi8/AIqxjQMEz\nh6tpy37F+zGPaxRqENal7zHrZ/4dyGy2CsCs+njMSSTFEyQpjZSfW8IKu6J+\nDGZgyVPeAUubXkNAHjYfA0BAuCGjkmbxDTqjBVCRqSlIvPOEpZMx+IJPX9tV\nWuE7qxcU2QZW8o5PwvgmchIjKMHRsubQhAAIudi1XRs3w2wE+TR+d6F+biLg\ntCw6fBCfpADxo5jLxxeI6QUXVnCqnPfK7AA32a9UchQiBWEXTJQkvc/kWmQa\n/WUOG6t0gL6WwRdUVRdWEbcUGx5c3V5Vd7aEGCCgpaaSFxp2sIDlMSRYG++i\nYgJeChNdaNn058HJYZ55+aGdosSBCI4EvlKBAguOWj9IIfgp1SCf7xMk48BO\nEq7DvW8yBamd60DU5ANjJgd3B1wxULPyR93D7RxNvWbsDZn+0AgXHg6vlAej\nizJ16fWEo2ZoSjcwlh7JY8EgY8PdBSzu7wR3o3CA/xla6igsVJPP0Ef2WVW8\nOhyDwwSZKxyy3nZDTO3EOULo0e5a9ZRkwHWHilU6lLOqeF+I29H/zvcEdn4m\n7YzNbQzyJunqdp6BoaSEDYo9K4vIeeWEzIbQcfq/Ho5j77MQ78xzxFzDH4eE\nRVuzkfg5iJWW/BtD5M26j879dVSiJy1jXIYkFRHLOrfFSpQ+g3+rOmwDjdNx\nsC0v\r\n=wA15\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjqsVk6Z8Xzq0ijyn6TcX+ls05r0FppQrfEdo96GDuygIgdCss0EX18DsMphC7G7LJZWU8oe3SapyVKWxgYOfFWyY="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.131_1639050672238_0.035709758100795685"},"_hasShrinkwrap":false},"0.0.132":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.132","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.26.0","@opentelemetry/semantic-conventions":"1.0.0"},"gitHead":"7e22c57d33755cbbc8ed0f09df3211e172942467","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.132","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-SoUDfH8/mJ8cnoKaJYnhQ8UbFYHtUqoLcfqddbxNzy3CKIhQ2Jnwg5pvUdK8Za7V92fMko5t6ENnsEFPx6GANQ==","shasum":"639723fb49e0bab58dc8890583c26033bd3f255d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.132.tgz","fileCount":16,"unpackedSize":106404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxJwyCRA9TVsSAnZWagAAdAsP/3OaD+lp/MgZge1wB4Z9\nyX7/UEuhEyks3nCc69xz3Vkmfbj5Y5Vgs0+eHiroU26u+hu8k/3EsyA/YHN1\nxC99ed0dMYDYGN1lAtrdhjNKUdTS1eFBXB0CSn7Lrp+k5PIYztPqfnhgHtHl\ndya6Ob2YLoBTLPmAL/ouhRbeENAKjZd4cUrD0P6vtHcytbi/++lvDn0Cl2ro\nQ9rg3WLRbAizXDDl1dIIbISZO8S6Cwd9OvzfreclkHH7owqYB9pN/aZSieMP\nehU8a/4lCFStQrTfUSjF/tNNlmBe9kulkT+8JCaPI4TrbKXrzpGRoMJrqzcY\nFysYMEvLL8SlOyPmw7jmbSWIO4hxJOMjC8Fb11cYvwuvnlrWnvKx2OXlc/BN\nhTnR+zXfmDpMABfUIM9ua3TgCj5jFG9bk1hdyai6+8QBGmyG3W/F97HmeW0C\ng5OSrfYcYAMPTu56jE6W8+5+TvCExM8V0fcELfrtVXn04ZqfZqLfC3QtUJfq\nJKloWAuwRONzL+lZ/jvVk8YToePYCb8isJdX+kftKY6umjEscSNEKDGukwUa\nOToylf589gLYCOVGolSFMj5kKCnekOPeJFgRYBdgiqEmWa6C4jwnCENqCmxV\nmoQtax75sNJxI45jnLaLUrQK2P9EgA64XlSRspYMyDfCcgSni+jcfxhX5PF5\nHg/A\r\n=3pKM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6dsnnRs8S0ge24+r/Zfvn/+JQGuD68t9KIWlosGK0ZgIhAMrg41TUuCN6mWZb07fLOBPIeUH3GljGpi08M1bVyKyj"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.132_1640274994094_0.1601685252805658"},"_hasShrinkwrap":false},"0.0.0-2021-12-27--15-59":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-12-27--15-59","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.26.0","@opentelemetry/semantic-conventions":"1.0.0"},"gitHead":"11cfa549afc0d219e77ef3187b2a6c66069d4cef","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-12-27--15-59","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-LTHInCbrEwAbxrKXENm9qNCr1TUac3tlGYvagvz+I4Tbw5DQnLZXrPRXWgnYvrGJiFL4fWBVcdc1rfuYxEuW/g==","shasum":"2fb5da4336af82cc3a65a2cb29f53970c9383dac","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-12-27--15-59.tgz","fileCount":16,"unpackedSize":106470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyeMcCRA9TVsSAnZWagAAX+EP/276neP2Mi57rZHbnpeM\nAidJjfnhstgQPfWWQdtawJ942xbxUemsCq/2Moc03c44sSNPfMKQ5QENCLN3\nl/BcL3KLwYpillphsNg/mZMPE8fbvZXHcQ5bzjMd3PzS7wRee2Nb31jD8G9i\noz00HNJUq8QVq7ML6zXloe3yfqwwAIatqBLsgEzH8DWvO7Ijj3LEpePBU4KS\nn7y9X63sFexhWXdKspWczSuv7G/mDhijQ5cBQuh/62BPkA1uDndVze+lkauO\njgkgqqQgBSK07hWn2xSZjzn53y2dM0kVipcbWgk4A7/L7+7eXHbgalPaU/lV\nvhzjiFTZgt8dcN0nz0iIZZd+N4VtbZD2RVnzfrJaSHOsPvJMXcQOLiOaiS+I\nuHbgi07BM5RRnAZ2Z+9vd755r+kvtkO7+a1wfAKoVYi+wQZRDsIk2pJNZgkx\nxEF+ZZXyyTPrJFyc3QRqkUhotAjh8Cdul5U3/3E7woDbSoCZeVBsTblqgOQ7\n3II3+EKn9c+LYXb+SCT6sLttD8a5FEskP4/W36vFUavEieyO9WvizuZ2zCTb\nq98Ex8ieGNdFIwICReyPihxv1tvr9C8+Jp9Kq/l7Z7WqCNB8kXDAWrjz4+n+\nik5C35ZpeZDXk6Y6VgtaGrINVPeh3ebMmB7aRxRvtsyvCbP5z0HIKve0StPM\nE6ry\r\n=yUy9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgBAb+8QBU+vzC8pXd+KDhsH/kp5ZEoQQ3hc84dmZ8YwIgReD+V8j6C2l/dwr2eGUxqcp1wLqIEgUIGqtNqe7KINs="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-12-27--15-59_1640620828711_0.7727596258039435"},"_hasShrinkwrap":false},"0.0.0-2021-12-30--14-45":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2021-12-30--14-45","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.27.0","@opentelemetry/semantic-conventions":"1.0.1"},"gitHead":"d65c17cf6cdc6398cef3ade0a0a3b606cd9a3617","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2021-12-30--14-45","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-xEetZr0hgh60kgDMc3Rib0RIsgkIgv9DfkNFGKMZD++WTeSW3zAlOg2cJKbeSQQutqSxtzNPAkegYCjlbDBsrw==","shasum":"5834e7280d2bd6a33f41d4b1779e719a1a9e8b88","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2021-12-30--14-45.tgz","fileCount":16,"unpackedSize":106470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzcY3CRA9TVsSAnZWagAAeVcP/jF6Jt2I2NU35LxNj5B/\nPG7tEsYMa0Q4k567HS90xJF9hTumPu+tDUx812Hmw0KTvH6qIoYEvdS+VVke\nzKS12uI4crML3UA5wOQe+A9YMp5zqEkvZggET2h2AivHBnagOjeKcocDhLfa\nWpBCIfZOO1Xn9QoKaAf9sFDz57phExZV5RewXm0nlvOW6x3rAvgrncln3yDm\nAMTDvsziqfpyW4TN1DyLaDcp7/9hlKJT6iuHF2FnxwPCC6qXgBt3IMh8mZ2z\nGDbfQvLdHoOuJcP0nIYmZonbzE60RpE72PMRW3pPBl7S7ySMOukKbepx8CjF\ncbeyXxwc26MiHru3JGN8e5ifDkansc3xRB0hOWYymIQTIXbz3Cbol/VLADOR\nen7r7Pov/dDUBlHAKj6WyJLJhCiV6TJ7nHvimJcKzvxcZB9k9/f+QZo7bnqy\nACcN7Fx0L2qJuh8/0hLE8n2Ki/upY5noPKMBY3f7SvCd6AeCe42PiTqj0fLG\nSxB40/EQEJ51NYEi4ZyX8xO/vkWhhUopRENNuyEgGEtrtlpzDUkLhzYXbB6g\nQYn8/rEXNBZvzrdT62Isxo6G7EPDEeONJzzQh9HkBZhkiYtJxX5K6FEJ7Vbr\ne4qrwmoMMN/H6mnr5rHe7+vwjwpsgysluSSmukXZCqk5hJYssAM7O69USopC\nqKQo\r\n=njbF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMRgXAwZuwCsS0sSqURWU879q9WFNCjWTEvzBk16NJRwIhAKBCrIGMtat/IAG6i8tm0iFezKVc7+YYOuWdKYO6fRSg"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2021-12-30--14-45_1640875575405_0.9336133095939623"},"_hasShrinkwrap":false},"0.0.133":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.133","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.27.0","@opentelemetry/semantic-conventions":"1.0.1"},"gitHead":"abb25172c5b15e60d9ee280eda46055fa099dde3","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.133","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-j4Mz2HDWjI/u1uatGhJDWDMvpbrgZah1+Z9dPc3HBF2n9SFCGFqChArNDoG37sPKNqffjeEko/YW/mQghG1++g==","shasum":"5056e2b8a3307708ee56ccc5c1b5b689efca032d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.133.tgz","fileCount":16,"unpackedSize":106603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0u5kCRA9TVsSAnZWagAANA0QAItI0oNeEvxAL9x6HLii\nKToQYjVY+deBkPXJhT6tOGBd41LNS3LIVESBjF/l5D0HtOWi5uDl/iY27t6P\nOodU4K3+Cxs20BmcfMyRZN57z64mexPuZ6ycLAggD0Ze7s3ZWc78ztUJEXQT\n/btukQpXw/v/rLdwxgpPwarrRvJ8TY8Dc1nbvIBo6gKDpbELcxRxUXUeCDUN\nO8Wz7wcvpq/nqKDGSt/fOCOJIl1rSKmp0rBFWl8vk2CXdtmMoOSthd98esV3\n9aXpiPfmY1YWMImfgiRVzqTxb9taS1yE40lQ4BROgrnpHJW7uPV7FyGj9EbK\nm/oiMWqdu4dxUAj17rsA5NM6ZSYt+k4jAnDb4b/DQtYGovYj8Tl18TLNUQ7/\nl36zcqahRX6FE1XPKmFjF7BqG3kVEfmADC6tO72vQmqN6redE/+jus2FJj5q\njywpiZacetBT+AHyKD5UPCfsSqPm3ZU1rNMYNs1oUJx9WlibVFhDIkElKEbd\nuEliHN16pQcLIHRNuv1rFNsI/CAXF/Thn980bkbQWc5kuWtEgPjcyY3NZ0Dg\nys4TMQz7mFtmV2H5XLcRbc3COjlQ1k57igEqOpO5cqCGDizUBx/f43lEqGKD\nLw0TFS7ZqCbtaf2Eki4xAyOS4gNF8tnO9cxQZAzikFroAEeb1+BwWtSBR+Ud\nGfwy\r\n=qBJq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe1HL7Q77qF6eUh/1gYvjWkjfiZ07dDAvwvcdpnpo7LAIgP/tNtkx7nu2OZdyM2DM6uhEQpEUYgpcaHKMgqqvZd7k="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.133_1641213539874_0.48176187267217796"},"_hasShrinkwrap":false},"0.0.134":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.134","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.27.0","@opentelemetry/semantic-conventions":"1.0.1"},"gitHead":"4dd3af08cae77de4f4e9f35c50df1e1557babd74","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.134","_nodeVersion":"16.14.0","_npmVersion":"lerna/3.22.1/node@v16.14.0+x64 (linux)","dist":{"integrity":"sha512-91qGk+vx3cpkbLHWqW89ksXYblNHQ0y6psKI77AaIqbuoop/ECUGo7612ogrk1EuY9/Cyh1ZGFw7wZ9Zni6Hkg==","shasum":"723d5303f817c6c12ce843a92dd1d8156127ccc5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.134.tgz","fileCount":16,"unpackedSize":106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMgqWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlmQ/+LuROkPadbMEyprGZMmmnxQWpu1fO4VwNyHYTqSS4oMnTLWLM\r\nnE7BlLC/VjIArT7pZY4ynLo3vZmyGUlrQ43Ng039OR5ACYJN0rPodGh6pNuJ\r\nj1Q6oJ7lm1yWiy+BsciruhAOSNqKySfP1rnq3VhRNnIDSYEgk5ADebEVZzBI\r\nFeNKYDAqYmZOFBQG2vtC5h05wRfy2t2PsnBh9buRl8fDT0RL4OzfqG6vShyC\r\nxNaxumbo+cb5K5wjn/iBBfSlkc5fLFURzuTQtqbBnSGaM+qvs1YrPyq/z9EO\r\nL4UjyiwDOUFLKE9050q1VBZuD47YnWJ9XpHpB7mcXtKezoCRyUpiMQVKuEE6\r\nUo1ynIumhMtCKKI+ai1FnCOoNTFb0CMa9VXB10PBr8eeCuEGoY7OWH/h1Aow\r\nSm4AYxax8GcpE1uHKocc2rK6l3LE67KdjWrsnCDT1z1Li5EAsa0p0Gju3RwB\r\n/dyVYj0CLScBLmIjBfHr8rDwcBQHKHBNjsF/9pIoKrC11mLToF2skJj+dyDA\r\neuakRu8T+UUSTqr1RzYnSs7iutjFGU8aZ2ViHVaaj7EAvZMjVH4mOeIMbIh0\r\n932O8infWPZ+AkqJf3CoC6TZu9hPydilKGauZk04UzwD7RCz3l/DMnu46CaV\r\nU5SUIz2Nrhz0MDa26j33RVDiavgH2xBm1XE=\r\n=wJ4+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXxPMtuR3dMORDIk+C8zORCIGLQnEHEZv/GteoXqLafQIhAO07zH62BCcTvzg3uIDDMCKzuwegn5N7Nr6m+9D3AIUt"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.134_1647446678410_0.3524358083352104"},"_hasShrinkwrap":false},"0.0.135":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.135","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.27.0","@opentelemetry/semantic-conventions":"1.0.1"},"gitHead":"f287c498f48a3f0101fdc7a3fbba03da1e30d5e2","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.135","_nodeVersion":"16.14.2","_npmVersion":"lerna/3.22.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-L1+8eotsUzNLU5WnBbfz+vEIqS7xO8Ydkgz1thWrINOaPjS1fQXrTY7iX5Rhts2e98ZDNpjAPxg/hqeUjdAd7A==","shasum":"624abbe7a104d33854d435c3a3d524e72c170977","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.135.tgz","fileCount":16,"unpackedSize":107001,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRmDFV3MknFvwwLg2xAYMjN/wIx5aId1sh0qw8i6GN1AiAJ34z9beM0APuNg1+fyCfM+GLGs2ukBdi1eHDJLzoG/g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTFTYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMNQ//cwHrWeFvSbzYllxqxQIkntVgn+V1B3VbtPKGHdZYfc9r8WX0\r\nsyHnWcCBQxvdayMo4oLugjSTw+UoKDUljwNeqO7lm+yZ94etyxqcB4kaKdsI\r\n0soXNk2lXJad9kWl/BQ/YRKYTaA1egGDeiu4bc2DlFHNXfsMYKfp+Ybo5myq\r\nn88DfLoocOU9zIdWfC4wuJ5Acivr2lDZsY/YGAICKEi4avI1qUWhP3yfMvPn\r\nexAQ3Ajkeyy+XKNKnWdUwRB7PdcpBC/8WVj0e58XAdzK4BdmoBkZJVHWNR3O\r\nN8vEmqPQJNs6A2LbNSJRjgg5NEXmeU/Q0+ZNADBkuacOjPr4o2RsWk076U2h\r\nkxz+Omn5Fe8oZ4cvTMuwjyFgv6oxHiSdwok11JV3v5mTHsCUjlG0g1+PGOrG\r\nuKWQ0KorJc3cDlLyGW8j6Q32EkGW7FZSsg9o7YAAfUf3FSFq3oYjHeRYB70A\r\n1QoPgL7c0U22AHKgKgI15ALaavDHwtRiVWCfY+hYSLee0sg5ptfMTZ/hCKGt\r\nE5/GtjeTr+DmCgRbwyl/Xw7w8O64XlWZQPEbJ/pTW9jDFvqnwxWqd1LQUHQT\r\n06Si7CF+O6q10/99A+l3x8zcD5YI9Ob3cb9YCXVHyDiZjUZ+gLVVPt7qlfQ3\r\n7iaykwpAYMk3Qla0ukrlWzpj5K1mHxRzT1E=\r\n=3t5H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.135_1649169624765_0.5233745682208677"},"_hasShrinkwrap":false},"0.0.0-2022-06-06--12-29":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2022-06-06--12-29","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.2.0","@opentelemetry/sdk-trace-base":"1.2.0","@opentelemetry/sdk-trace-node":"1.2.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.28.0","@opentelemetry/semantic-conventions":"1.2.0"},"gitHead":"c649ec232e7005d4d1948ae2f94fd4fa07a12dd9","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2022-06-06--12-29","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-2Vso44sMC/MTiFuY1ELwLHPRwm0k1NQbQXFi3TXg0BpiEYyFTCIVILLHlvaIqFg+56WTgUFoFk+Gt8fR8HGy9g==","shasum":"64eba34f4fbce70988ad013df9d4e66407b4af79","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2022-06-06--12-29.tgz","fileCount":16,"unpackedSize":107067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCNhWA9VXKKj1nDUYFtRdrxHdIlBPvf3F5gb5LzfXEvgIgTo2Rl05rCws0LH14qKMMDfBR+Nt+1SqtE5MEmWdlyqA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinfNfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaOw//eX+uPOMDvrvPjKrTwPsWWf8/9t67w9PM/4rKhjKIOu/OD0fe\r\neqlkfVEi2WcKKgHbKNRpmmWN662Jwh3+xbKFxuccCjtOFr16weKYKkFR1JAs\r\nvkvKGq6nEa9BFoQPEpEA+EtCjtDxxMFODCccZLiOwPWhL2rIxIigcbTLuIIA\r\n1GjX276wg91FDX/KY/5pxFWqe1hLMYpDLKlyChAzs7nCFqgyWl+OOCtwbHqI\r\nJnFGp97GkiugwRlurf/2lyNaPCZWIi9qQqKTI9S92gM416gfnbDkCYg5I/gI\r\npYEOOL/U6zGckzQEepPKbvO04ullpDykPwIbRWdwQZv9xN+5OSHyTFzHMexl\r\nrNMEoN23qxUtAHRsNP1NDEnhlFeWP6sDgM4e3SmEcnppWgZgBbWgIS1Vsr4x\r\nxJl3RPPz5xbfTsyliJKB03BIxmnb5WwRkZFVc4+T6g0ZZnYEoI4GZ9HLHEb8\r\nSprXnabzWLjFNtIwKuxQfsfTNL4DnyWm4DgYubXr1SW2fGH/AcX1Up2m7hMK\r\nu3ln5AeHQW9kFfbonarfED0snf9d7pesfbBmb+xTTaQOJ/JJBDsK9Ilpw/rK\r\neKKosod/QfqSf5e9Iz8tG+8+RepkbdgYMK63W1Mp+1uVoclnizdR+eEGC0WC\r\nFo9hBGla+bCfNGCCJ1dfP3TmMJoVpSZaNvk=\r\n=HPeL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2022-06-06--12-29_1654518623360_0.10126402388292521"},"_hasShrinkwrap":false},"0.0.136":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.136","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.5.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.2.0","@opentelemetry/sdk-trace-base":"1.2.0","@opentelemetry/sdk-trace-node":"1.2.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.28.0","@opentelemetry/semantic-conventions":"1.2.0"},"gitHead":"b6fbb0fb93d6abbc0d7f2897612bd2e4de8315ad","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.136","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-oQ4+faeLQgPjfkUQwymALLNH7E4ZoBvyUb6NdEKFB2OdnMvckDwbnjNY9enPQxYa00+C7r2FYlX0Xu5eyZXENg==","shasum":"3ae6a4fbbde765a958e267a3967074a65336cca5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.136.tgz","fileCount":16,"unpackedSize":107354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrM/O4/xXH5QssgWQaHcU+1xucDf4uPfHTW5rRdmwYLAiEAwiLWQezkP/WQaaGvr2sIXJiwssD15DnnvmLtlMVwfBc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinw+0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSLA//ZyT7YwaCboaIWGpZYUuw2TojuzR+3AGNCj+kEcssaLvP5zHf\r\naYrAajB0zRhROsB098jMZMKzMRpM6kKmsQwy3bFuBAMQN1XzwNTmXEnajrTF\r\ndrH5EUC0RkIb6w8ub/bmrWXtnCK6eSKCMsb/YZCCKSPvQpWG3GgnTlao7mEA\r\nkK6fHA794K+1LZsM7sn6MICyWsN8lCEED0s0QQKO+6nPyyUrHMXyGiMpEPFf\r\nJ+1Nod/Q/i8hpPk4RRCvOuILAxU7TmVWn0UwqU/Mrhx+q/ApKEHEH9oOlZan\r\nTS53vkIhBoY2Q4U+qOt/UMcKGXKMX8BL2pxNnm7/DDGqyWiv5eTc7wvrnC0h\r\nat26DHxkLe/tGyDgj2v5FFlpru5+r4odY9C3vElXk0cqW7RBVWMn+Ys48eiY\r\nj5/5qJVRQyLz2DdbH3JWaxroIVyYQvMSt5WLffhH2fjc0VLJ9n2ewJYv8BYi\r\nBq8GJ/3cTQ4JEtRud9y1TxSM/IbuyO28nxGWL8PY75znIScpdbV74iyc6ZOA\r\n6SNgpauam2HcF7/oFlrmK9Xn3sHW0dX+yb7yoC+ge8ZhBiKQLAIaxKYf9lOP\r\nx+Gwfl42kUISCbzm9est6UlV+SkiVoIaEbH9ttjvHzow9veDQVDLoi3AsEEY\r\nzRnsCCyI0/JAXvAc+uA3pkinUAarfHDAXfk=\r\n=ZUry\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.136_1654591412598_0.119114903032157"},"_hasShrinkwrap":false},"0.0.0-2022-07-11--10-54":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2022-07-11--10-54","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.3.0","@opentelemetry/sdk-trace-base":"1.3.0","@opentelemetry/sdk-trace-node":"1.3.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.29.0","@opentelemetry/semantic-conventions":"1.3.0"},"gitHead":"8d77dc150991daf6bcbb930729934e0fafd83daf","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2022-07-11--10-54","_nodeVersion":"16.15.1","_npmVersion":"lerna/3.22.1/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-BmgAXLo+1xmQwqKhkc4ES8WmG86KvRDy1ltXLPuJHc0x4NkPCOx131j95MfS9+LETL6RWHcJrZnREm/8oOqNTw==","shasum":"5bc0b750be248ad57dd848ca560c336a277d9e8d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2022-07-11--10-54.tgz","fileCount":16,"unpackedSize":107421,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5FL/4WWF2AcU+ENViybVN2USm/fOzE5I7G3reyaam2AiEA9dTI03C3lMvPoqviaBJJYAAyBE9HwDZuDFRgobK9ZJU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizAGQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo12g/+KcDOhNP9lCGVODKIr4dI7XFtBRxGo8ALbtVwGKF+X/Yy1haB\r\nn634A+Wn5zL6uQ/dmDb28T8+taRX/OpPIN6r1atZeqfEcOL8IPTvbASoDDKw\r\npfq8e6FlZW2ajIDmNrfNjilxpaCCI/bO+5wyA4so7nVvsUhNw2TItiUge9VX\r\nZUpqYxpTas92a8AO7QtFHLQ1UDshf6IGJ0oeE0SM1688pNu3VUK61PTgO5pN\r\naKaKSc66Q9mmpkvTRESs1spL02jFZf6W6GbCEYESQ9/h1alt3r47NpkmnUqO\r\nl3TnxgK1XMFPBDR8IAsoyP/do8WWPbbN4/8jZFhXK02gMho2wnUBD8oyXTqI\r\ni7pLos/+aZgaVRjLCDVvNNGep4u7FCJymCIEBx0kwvwPzFLZAdudG4svFdiv\r\nvN0wMU7vOP6ntBa+eZjElOZjFxFA4v++Hlw3Ek7QJTb0Zy7+rmuIdxgxg84d\r\nEsxSdtZwkeA/ZgYQ67xxLT7rFHh2JMgd0NQDKj9jPXbnNZtVE3+5KxTUiVRz\r\nr4cs5DvsJUziWBlQQSQprPCiwk+jmkSjoEVqX2cqaiYNi/2Wf0V1U+I2Sj3f\r\n4JdIcuqm6bRey17rQUKRsMyxBxFGoWA8BjMIGFYP0iryamtTB7t47VUrtHPB\r\niyqZB8IwdQQSnfvnddRAvS8cqFFpEMvS5aU=\r\n=OfrA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2022-07-11--10-54_1657536912710_0.6797044851370382"},"_hasShrinkwrap":false},"0.0.137":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.137","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.3.0","@opentelemetry/sdk-trace-base":"1.3.0","@opentelemetry/sdk-trace-node":"1.3.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.1.3"},"dependencies":{"@opentelemetry/instrumentation":"0.29.0","@opentelemetry/semantic-conventions":"1.3.0"},"gitHead":"3b82a810d55a2d188824297c50e26268afea21a6","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.137","_nodeVersion":"16.16.0","_npmVersion":"lerna/3.22.1/node@v16.16.0+x64 (linux)","dist":{"integrity":"sha512-ORVKPJhrnMSM1otdmnFuvumvU7DXD5OEGLZANK+fX6fXW8MJCdphzFlL1u5xNIAwJ9ZwiJ3Seex6A2hOSZp35w==","shasum":"d8fea902cb08f95e93a7d38a245bcc54de38cd6d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.137.tgz","fileCount":16,"unpackedSize":107785,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9UkQTTNAkt8pNWFfn3UjqWQUl0mRwPLMO7gxwjSlSGwIhAMugE4LepOi2cx+CAkpjkOHzGY823lLb2PUt/MMYkaKL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizY5TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIAw//SBK+2SmJ31hoGlJE1q1JKlKjuPv5L6wMAh2gcxDzKHq4nTYR\r\nqEfqgnKWdb1Rmnb9nPq0hoNT1iodwaIGWAx1i77vajPgEuSloNngyDWNz3XT\r\n+FSEnzTZUgh2elqfUKtMY0RyNAQGkE+7uFpUvnCNK+2jiEbkonvyJh39Lm6v\r\n06k/a7wmb20qjWO5/RNwOqd/Yv3WOua2rsG1bi8Ek1cmbYE3x68RmTPPBVCK\r\n/CCKbftU4hWP1CxGQUC8LD8KZwGpOwlg/o5xGkqEfn6CBv+iMAGyMP6gV4Ue\r\nQFl/VXTp7C6QhWlaJcn4BrhUrSmNHSP58bFyYHhgFx9Y3bGH91Qi+GmT0XOa\r\nxVhS4XU2ecRFQ2na+aFElflGlBw21RxDl0X5tyyUbpV9l2weCuOTELXVbX2J\r\nWeTUTxaLTvRpXVgk/chOVr2E8nlbn9n/LGEgM8S3sGfuZ09jEreKXCUvco7E\r\nObR7qQn1yXZ1KzyLGddFtMzGVjKj+kAjLbxlJNQ1tH1FHXHjWYrDTRU8Qenm\r\nrQCOGmVfcuKk8kpND83XBpBptb4c++Q2m3BO3dWGoSnoQSilkhYQ1fOqCPBO\r\n1ZnR1RPj7V7q1UeHkGTeUU+6HzD5aqd5uhhmAqVT6igocTT+9mWaBid0Gm+6\r\nMo67ExQkVoLLN+m1+qqFN6IskairtdRfUaI=\r\n=QDK0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.137_1657638483173_0.04337931201477385"},"_hasShrinkwrap":false},"0.0.0-2022-11-02--07-46":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2022-11-02--07-46","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.7.0","@opentelemetry/sdk-trace-base":"1.7.0","@opentelemetry/sdk-trace-node":"1.7.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.32.0","@opentelemetry/semantic-conventions":"1.7.0"},"gitHead":"ae71f4dd34a9f97c181df9ca4f51a2771e2c2229","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2022-11-02--07-46","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-/YcZJQDyaOynsfEXOoIXZK4EfBAtZUmPELcRbW28S7rFnDzWZGV2S3gTcr4Q923sTUhdFD9y3hDeZ53heOL1iw==","shasum":"06a7cf336dab509a6c40c6a68aba2fa7615f3a08","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2022-11-02--07-46.tgz","fileCount":16,"unpackedSize":108069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcHKiYO44TKzM2gbKkfDevKxJJeYD1f68uO/Q2a55FoAIgQjpQrjyAylIK7HzZ5tVJhuIP0ATshEfGG1mdgcnPw60="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYiBqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0ZQ/9F0aL2RRcVQYbGm+REc2ee8zNr0sooVQfChzWqYZoOibKZJ15\r\nAU2i3rnzmsRkjRy6u41qgQ8xA9CfSqM0aAy5JIft692yJDrIiWVACZFBR+j6\r\niVQo0uNe7JHzluQ72C6LbV5fkphxthqhz0BaeVwE9yuZaIrbfWfsx3wNLbNi\r\n1I0q4ubVfP10VOS3gW4CI4WbaW7Fv6Iz9lDa8gwz6lkz4+T+mKvfZAJB2KNV\r\nVJI9+V1xPBT2ZdXz4wPvlifn4rKLOyZgEAUKWh6hs5T0qDU7+aT4OfqFAePh\r\nzL7OjHdEd9sLT97P0gjx/HE+6qfm3aptW71Fr0MJ2FX1NNgxSX5URKBuehJg\r\nPCLSYq0LJN6pn3pIGVegxhAZvCKf4vtOV768U5lNGzg4CWEU02Zh5G1XIAf7\r\nWwk7pG5bj8G/2HhPCN/nK2urfA4+buP3hXi/NLeGrpDeD3iOrS88p7DHGcav\r\nbA31XljEMdZRK3++kMBR+a2KwV4TrTtIgA09pWUE0bUcZ95uulstAI3DFyvP\r\nPFD+CRP4bL5xiu9KY0hoHIYh9ZgVgEt16GDHlgJ+Un4vWCk4mYISx0mM6jbQ\r\nR3XW4Ou2fflhxJtFW7myzkw4oivUuiU2SVHxLXLiuEE4u/XJ77f1TGhaiafb\r\naWLbG8S//BFkYhcTjVm/kfq54KkAt9MT1sc=\r\n=6kV3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2022-11-02--07-46_1667375209781_0.2951340000157492"},"_hasShrinkwrap":false},"0.0.138":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.138","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.7.0","@opentelemetry/sdk-trace-base":"1.7.0","@opentelemetry/sdk-trace-node":"1.7.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.32.0","@opentelemetry/semantic-conventions":"1.7.0"},"gitHead":"63a6d3885647ef2a17061bf5d693bb73d6af97f4","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.138","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-oOJK5HwlTXULFv7l9ZOD2DAR3m9H41DgPf5t+wbDmxDIierOfJhhIT8URg629HfBB/KKL58EtRsaAlDYsW/l+Q==","shasum":"9b8fea9f9f4c3c9c000d4cc70139ca34b737eca0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.138.tgz","fileCount":16,"unpackedSize":108202,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDr5qS0Cj3JdZug6f2WcjxnaToB9HAvS5Gydwl0+/9nuAiEA5+snqdILuo6dBrnfs04yuSN3/tdzwHqngjJxJlWRlKQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYjwGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdcA//ZUckPLjWELTW9YW1LFtHemz3CXlhwpDrK1iu1DV/myuuBz5L\r\ndVDulw2iIQh9xCnZrLy0o/ZyhDtx0BschNcumbUlHB2eBlJO/uwNS4KIUfRC\r\np42pZnuhhPF0dfB6DMPB/zTul0iOO/O9hhxIVODJVFW4MGjZROP5MUFXnXCO\r\nGpKBktOLjL0fvI/su698AFH5IWaKM9wv7u/gq0eUMzCac5sDzlEFHEo3QFxY\r\nbzkpcaavMAiB3K1w1AR1PbK0Fz5poueF35psJewzeYaj14Ujn1aQsJyZrCYq\r\ntnU6ZywbV18+mw2F4UJ7XBlFK/dtsIxd34hC8VmHOapQLPpOTyaQYi02XxRM\r\nKLp98pysnqqaF4BYPVSny22m1Dhz46R1+l3hYePHwc9Y8COKKNh9j11twGrB\r\ndlu8RKHD15Ossg+yJQA6CwuRyf6RPMq0iNr6fREoTs/831isZ7v/X9W8bAMj\r\n3Of6zONbGBH8an1CPNvy68sGAkSLE4IdvbXQF0uzN2zd9+I9egltnBea6EAa\r\nubHpqJqCrQ8XUrJUgvhfcDuSRBU6R/K3siy0avpjxVMlN+18luzLexNr1Xpz\r\nr6iRZIdLcs3WEE140NvhC2Wf/4IPLM1VDNmgWsXBkE0sbo1Vm0LdxFGZnWtq\r\nWdLCGGk5Mvbs/LObrz2DuooFt89lWuS1KBU=\r\n=5qYz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.138_1667382277970_0.8925691743506672"},"_hasShrinkwrap":false},"0.0.0-2022-11-24--17-44":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2022-11-24--17-44","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.8.0","@opentelemetry/sdk-trace-base":"1.8.0","@opentelemetry/sdk-trace-node":"1.8.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.34.0","@opentelemetry/semantic-conventions":"1.8.0"},"gitHead":"64a888ffb3eaf235d129b465586da23fd82d40ae","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2022-11-24--17-44","_nodeVersion":"16.18.1","_npmVersion":"lerna/3.22.1/node@v16.18.1+x64 (linux)","dist":{"integrity":"sha512-mHvIxOuh2KGH3Vmf3JJpgXP/6RiJxXlMkUqZy+2pQGhb8sPxMoQfzMTZ4iK0U04b6W9RdX084/uZ7oxOg53v8A==","shasum":"55a665f98e69de5cb06bf43dc276d92e4aba2694","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2022-11-24--17-44.tgz","fileCount":16,"unpackedSize":108268,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGs8RUJ7KaZtCViqnf/5hWiM0izP5bAOHtDaz0eYqitqAiAsUjhOuUItrzgS9wE2uESgDlAYjMyXhg66Dqa+OHY7bw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf62TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZgRAAlc1QexdiTRTbo3wCvwt295EGs7UsPlOhXW5sVTdisAD4cdi0\r\nqTWxMWna4L4boak/5wUbJiFgvbMZdFKaHyySKLo/yhtj+3JHxzlcuOduhDqn\r\nDqx/StqU2WrGqVND1MDPWfZUs0av1ksMM73hc2ElDi4DMp25VfGqNdPOBf7d\r\nOTuDUN08ZACQtD+AZOLhLiOiyz7GmV9hmHLBOfZI1YpfGttC2assw548A6Zk\r\nmb0FpUi3OUhM5mZ0bxTzsvKmur+TkXC3B0Q+YWx1VBP71XP/nMD25UOwTWRv\r\n87O3If84M9HGe/76cx1nOIF80chwKPDmAiFgRu+LAG1dNxyRZWJ3tUoUvW9+\r\nPko4EDxJQ/Q8jp5uTz5DPLLCjzklWs9AhMXRN16U6KN2sJ13T+syDjFhWpR5\r\ngLq1YY171qdo3WU6fGyEgX9MjzX+ZNr9PRsHE6GvY501VmnK1C0PAH3Oeg7y\r\nwGwZfbIuHri1jQtj/aj7IkeNpCoVg14p5L8BX/eBoKzWmqJ7YiO6sQzZYgMn\r\neYtziaiFT4fM5DYJ+iqf85bPKl9Zr2Cev3wkmH0mIE+n5nAkKqA2MareV3jb\r\nxxllCqbjOT9WoCBGOPBTdVlBnUL6kcAmDFqf6l6Jb+e1eBFFUUuofUQOr2yO\r\nEbE+Cj3h2EYoNFuzKyXzuqnSjxrgb2XsFzQ=\r\n=7s18\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2022-11-24--17-44_1669311891506_0.5412922258411403"},"_hasShrinkwrap":false},"0.0.139":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.139","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.8.0","@opentelemetry/sdk-trace-base":"1.8.0","@opentelemetry/sdk-trace-node":"1.8.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.34.0","@opentelemetry/semantic-conventions":"1.8.0"},"gitHead":"80be0557889856952c000339d61b65415fdeb4c0","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.139","_nodeVersion":"16.18.1","_npmVersion":"lerna/3.22.1/node@v16.18.1+x64 (linux)","dist":{"integrity":"sha512-onSW6m21XJBfuy8+0Xe9HzWXQMZRFkHsmQKf7hE6N0v2QtgDajHQWh0alnGFu2LjJGXBPMHAD+Oa1bxhB1jWDA==","shasum":"b3f5caadc2900f238843daeda3007597ed331201","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.139.tgz","fileCount":16,"unpackedSize":108401,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBj7E9GE2PuRaf3DX2WGpm+Mhqpf92gaSOG+giPP9SpiAiEA4qhgWnjf1pWyPBmOX/bO0O9ckwZASekVK0nN7YvsT7A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhvCsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoP7hAAnj0DQWJ1j7EIfBHnGVJXP1tdNOopfh5BkbzEJjDvcvklOQlu\r\nxW6tE1xu2iK7B1TQ9+VSeRFHhnGzVbGGjvPk6z60859s4HDS2pw4niKX0sOy\r\nj8YtiiicwIlh7TIIDp6Qb53Y+9xOerMKP3hxbNVksx/pGfjjhVOBn2hiCmRE\r\nwJBmpUmfZPcSLTr9L+NVZpTcItEjx0dC65J7fRsDjKQAbeVEYL5VlTK6Lcty\r\nU6QrQE9A7Oy8Pomn03oHx6whsXuhUAuEpp2ol2j3swmNf52BoBuc5WWw4LKU\r\ndyXGbhZfNPIqeU4p+InzYGJE0tGYkBkD+9bFrcvfC6+QWABNWF+ycV0IOLDa\r\nkEB81Z3l9Z3EwT+IpuaH0Ei03X10pDnpG3cBeP4629R5IMyLcLMNX8wFRWx/\r\nr/DJUSjWtaxXHZrVsQ8GugsyJ8N1e7luL75UY3mZclbCArfYmvyImgP8KTz6\r\nfls2BNXgaUoWAqP//Zpg068ONuWhm3w0en7ghu03ZYAXqwTUbLFPAsOkYwLS\r\nSoCOTFM76ol2TedCJSq1LqSXy3EcsDPljL1jSxM4rbvZXIOJqNRNdIXHuIlz\r\n0bPhXdpiWOdIWmLKOtRupP6u5aGZsKpFQNXc4XFDpxnsHVQYlAcSWE4c8PRX\r\nFdPl8XGvT7/ocRirAuApEVnmIJ0LdPHB8gk=\r\n=JzB5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.139_1669787819974_0.9549798331749659"},"_hasShrinkwrap":false},"0.0.0-2023-03-01--13-22":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2023-03-01--13-22","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.9.1","@opentelemetry/sdk-trace-base":"1.9.1","@opentelemetry/sdk-trace-node":"1.9.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.9.1"},"gitHead":"e0803f2e7725c6f434009675924859293e8e2a96","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2023-03-01--13-22","_nodeVersion":"18.14.1","_npmVersion":"lerna/3.22.1/node@v18.14.1+x64 (linux)","dist":{"integrity":"sha512-nwI5i/OU+Gu6ATUpi8HwikTnUw7bn6Z1m+7R8AA/rJlvE480pITJw3g0oZNZSFymwuoc+S5Dmzfup47DEjUgeA==","shasum":"6aba058b7ee244385cbdf1c740aa677cfcc51131","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2023-03-01--13-22.tgz","fileCount":16,"unpackedSize":108467,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICncM5TGqv8neSYpeUYIh8HH1Wv5T/6paUgJYMD7poMBAiEAwNo4cnc77egkTrnMFiYhREPHbHIe4dvkAMCMc6Ejh3Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/1G2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpr3A//ceaWIfdj2kkS1SONuxeQKSX0OEautAaBxQQU/+oHCf0D3KJR\r\nXugAv6FnyGxoCDKXfrKjZBWXsAeFTfwcZjSiUH5am55S42RTg5VtyRyOAJ23\r\nbKOCD/uk2d2oF9lb6s4Yz7/r9vLR6oJbj0c8ztGjPE+aiOU9GVvZ9g9tFcf+\r\nRdXhw6RHQL/rCTiSqyRIFIxGssqgH9vD/M77CESpHEm2jJVYVs95GS7VRI6B\r\nghmkpLPEIM9Cf4v1cY7QftDKOlqA8Hjr9iu0CFRxUACnTI9eUe7qcmw0Hdxw\r\nrUh+q9Eu+D/M2o1khaQKeoomvH6CsDvV+HegbI6CUmqdmjgdHgh0k6aCDH3U\r\neX7W6DlfCmQokUoHRTgzVje/3Glk0mi+mOdk8EvGuDHfYqSmZJ8xeh89soAV\r\n+tYSRzoUFUUuCDmkW2qUudpOV6F/UnVpsAVSi3/C1JWqhVh/ObzK44s5q18x\r\nxf7e4IbfKJh72knIh2TIY8rqYhmScTuip/04Su+F/15LCVmbNt32laFTzycK\r\neXL7frLb5n6Hqv2R63n2AixohJF4hrmhYoPirbPm60iBWp7Jj0m4q22d7AiM\r\n+bzPc9cDgaLCltcEAN9tul3zj8jz5qw2JrRENGekOZHQQ7Klgn5O5HEr18x8\r\ngRzsY0Ii/ZBJGYJcuGp9Qn5MWLz5PcIIWl0=\r\n=BYXj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2023-03-01--13-22_1677676981928_0.37900193078208266"},"_hasShrinkwrap":false},"0.0.140":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.140","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.9.1","@opentelemetry/sdk-trace-base":"1.9.1","@opentelemetry/sdk-trace-node":"1.9.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.9.1"},"gitHead":"c9b383a63b72bd8ba8f707c71f1de474c01500a6","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.140","_nodeVersion":"18.14.2","_npmVersion":"lerna/3.22.1/node@v18.14.2+x64 (linux)","dist":{"integrity":"sha512-sQVbGybXPgpEfho5+25ean2FrTRGi/CoXd2bJ3QkiibFjJo6xDvDfv+Yyj3MKTjgdMYC1xaUfgJXuM9HQy70dg==","shasum":"a13cfefdfcf82ce04a718399f86163afdd97dd06","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.140.tgz","fileCount":16,"unpackedSize":108600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCipxEFlZTBQZhBryrmkKOhqWY+tPow6SnbgQ8CNQ+3VwIhAOTof1rlIFzw2n/hjtrt/IvTvbH9mJhFfBpGlsY1gvjL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/2gnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrM+g/+NrRp9b22VZZx4w4Vp5nmtDSjHoBXbR770olRfBPHC5Lekm1D\r\nfsLqbbFy2RorGFWi0zmE5BtIi6kE379R+t0S87IuAeMPaVX89hGvbDHaYZFf\r\n7Ye3vGMRHJ0YD3pM+DJv9vP0cjU4x2o++dAYPC7NPXHYFEy5BEmhXBfnbYtk\r\najeV7JBJEbjJBmxW6hPBaQKkM0L6ohKvscVRBHbxyM9TVwTK5t/3aO5xwchK\r\nDpLoA38AyA4pmdCUaAe+cuFDyVPNeqX6L3jAI/+JWD3OjM8U1CEusjtWYjUG\r\nDce3tz7F44FzraSja4Lt68dM8ZDDlkGwu/3ZpemQAKqy1Le/dAtxuY7Ety2E\r\nprpZqA/8sjFNJEbmJYJFM4ovdS1Zlx3jvJnJwJa0JcgrNVcgep9qe5akvHvC\r\nzvEF/TLZFUeluxpQKltdS3CMZJJvkJ85m6x2ohlBWY9z0x2TY67LTa6J/GL5\r\nAJa1ck5YIUZMHBRXVguRhDSr45qbGSr7qON3RjJ2uVIzKSpjXzxQ/MJX7S0J\r\nrrHMqitDvQWqUH88vkXL1KsKs98x9Vbbg2jW0q+yKTUOGNK1pW1LjnzXwTyC\r\nySomM81NMtZgpPhrcYGujijZEc3aWZt1OVqb28U6Z50xrHTiuJXFEVVjElc4\r\nvGcdZBryFepP/8HaMRuCBFwxgcafCF3L51Y=\r\n=PZHI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.140_1677682727773_0.8251092600305348"},"_hasShrinkwrap":false},"0.0.0-2023-07-27--11-15":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2023-07-27--11-15","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.13.0"},"gitHead":"d4f271bc1921afafab0a04b30a9e2d76d3fe5d5c","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2023-07-27--11-15","_nodeVersion":"18.17.0","_npmVersion":"lerna/3.22.1/node@v18.17.0+x64 (linux)","dist":{"integrity":"sha512-F8eieHzGUO9mq0z5AMbAgZm/5vnszGJWFcKg6XMjiSfhZFW1SXGMStqwAc2RBHhwv2NCGXNqhU4H/ulfrlnpIg==","shasum":"956ddbd2e90dfca9a7bf70abb0d3ae138519d9ff","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2023-07-27--11-15.tgz","fileCount":16,"unpackedSize":108670,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCySzKmkWaXz6whKVZH9L2kus5u2KpTA+hUhgM1JJL6FAIgFg/TnlXy2INeKW0NsL7IqmwCmSknEO0GLKNFuFJ+aoQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2023-07-27--11-15_1690456531022_0.7490012842326965"},"_hasShrinkwrap":false},"0.0.0-2023-07-30--08-42":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2023-07-30--08-42","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.13.0"},"gitHead":"5a4e49cd236790428c9bad614a3cfe601de78c9c","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2023-07-30--08-42","_nodeVersion":"18.17.0","_npmVersion":"lerna/3.22.1/node@v18.17.0+x64 (linux)","dist":{"integrity":"sha512-WrqoRui+mGeqlBYA292hGde9fJuJFo/aPFUeMs6GJFA45ojQJYO6TOiAafK8EFKjNCOOg/Fis9R/OeOELJKEuA==","shasum":"cdd55ec730419f5c5fcf4e9789199b02086a19c3","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2023-07-30--08-42.tgz","fileCount":16,"unpackedSize":108670,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0jN6tNolAB2AA48jXeljrFVE0vFM30bQhD40ZIs6ecwIhAIUXcy+zTsb7UVwVdjK1dm3SyLzQuNNRi72TC+xkhKxQ"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2023-07-30--08-42_1690706575240_0.07122030221542208"},"_hasShrinkwrap":false},"0.0.142":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.142","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.13.0"},"gitHead":"e23d58a708539804a19909e5106929bd723b5496","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.142","_nodeVersion":"18.17.1","_npmVersion":"lerna/3.22.1/node@v18.17.1+x64 (linux)","dist":{"integrity":"sha512-1KSzF4HhlPA3LkB6i/D03Tey+XAl9Ee73pvChMZJB/ShanjXUiDJmRq6RS5PSDOXkczZZj446EK9wnenz/aeLA==","shasum":"42631c063aecae90cb6ee0951abe11be2f8792a7","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.142.tgz","fileCount":16,"unpackedSize":109002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwHmH9TT6Wfn2/IUNH5g5Adrez+X/f8c9le9cizJeG0wIhANP2NBxwnL6h+v7xGsQKIKIM+612dqgpshvsydybz7Uq"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.142_1695290302646_0.6727339315533067"},"_hasShrinkwrap":false},"0.1.0":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.1.0","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"4.4.4"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.13.0"},"gitHead":"5bdbf82ff4ce1fb617273491c50bb50349aef22c","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.1.0","_nodeVersion":"18.18.0","_npmVersion":"lerna/3.22.1/node@v18.18.0+x64 (linux)","dist":{"integrity":"sha512-dkg+KBBMgWaAezozjRxWwme98Y6E+mELd/IJ9E36rfx45r9+bE/jSV/YhN8kzwqjMT4I3OH7BXERw/7KkoxZqw==","shasum":"82c182857ac9732f9d49dcc76f7e9814ab4750fb","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.1.0.tgz","fileCount":16,"unpackedSize":109188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0RGNVqm4Mmgt+OO3kZgaBBs1TZeCAfS138Zi6HGfdqgIgb99MkXuZR+0dGfJo/2NK43xPjSdOYP234bMHTEco/xE="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.1.0_1697550280808_0.914562657706999"},"_hasShrinkwrap":false},"0.0.0-2024-05-16--14-39":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2024-05-16--14-39","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.24.1","@opentelemetry/sdk-trace-base":"1.24.1","@opentelemetry/sdk-trace-node":"1.24.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"5.4.5"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.24.1"},"gitHead":"f964548376ceb75de433f5c76e199dd74ba2c971","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2024-05-16--14-39","_nodeVersion":"18.20.2","_npmVersion":"lerna/8.1.3/node@v18.20.2+x64 (linux)","dist":{"integrity":"sha512-iqEzo7Ke1uPWUHlHUJDnzkLqyWCvWsISvOPyGGnPClEVt2Hmb72kDncrHsPTzCFbVN4Jm2HE7ocdaJ1RVjs/2g==","shasum":"49497ca78f2f3c11d9d7d3b52ec3b78b03bd66be","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2024-05-16--14-39.tgz","fileCount":15,"unpackedSize":99129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbyMclzzMISFSwAqrc/TXG3/1h1ixrCyMg9QDqFNjPbAiEAwdef3ShVsWylIXI5cPaFFRy+tVJbSvEbR8Z+vZahZh0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2024-05-16--14-39_1715870384901_0.08258811666016785"},"_hasShrinkwrap":false},"0.0.0-2024-05-21--09-06":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.0.0-2024-05-21--09-06","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.24.1","@opentelemetry/sdk-trace-base":"1.24.1","@opentelemetry/sdk-trace-node":"1.24.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"5.4.5"},"dependencies":{"@opentelemetry/instrumentation":"0.35.1","@opentelemetry/semantic-conventions":"1.24.1"},"gitHead":"1f75f2b9b4108b2ca822871f35929058afa873d0","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.0.0-2024-05-21--09-06","_nodeVersion":"18.20.2","_npmVersion":"lerna/7.4.2/node@v18.20.2+x64 (linux)","dist":{"integrity":"sha512-sjKPmy35gu+KcJA6XGSDLlja/4HTM2iUYfGnBkq07ohkWGHecU5fp1KyBkN+xAokGVf/G080zuTcEXImsJrFSw==","shasum":"8ea215f3e30d6242fb4a7bbdc5984c8c1e0e8491","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.0.0-2024-05-21--09-06.tgz","fileCount":15,"unpackedSize":99129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDkoTZvUiy416abfdK3KpRfQjb8Px+JLHp2ar+hbrN3VAiBb0A2+hD0Kf3KNazbiz8sw2D0KMMAUhOLvAup/Co6+iQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.0.0-2024-05-21--09-06_1716282416924_0.5517300902423661"},"_hasShrinkwrap":false},"0.2.0":{"name":"@aspecto/opentelemetry-instrumentation-mongodb","version":"0.2.0","description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","main":"dist/src/index.js","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"build":"tsc","prepare":"yarn run build","test":"echo \"Error: run tests from root\" && exit 1","watch":"tsc -w","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=14.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/context-async-hooks":"1.24.1","@opentelemetry/sdk-trace-base":"1.24.1","@opentelemetry/sdk-trace-node":"1.24.1","@types/mongodb":"3.6.6","mongodb":"3.6.4","typescript":"5.4.5"},"dependencies":{"@opentelemetry/instrumentation":"0.51.1","@opentelemetry/semantic-conventions":"1.24.1"},"gitHead":"1fb6903327c84864c384a6068bead125db0d0237","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@aspecto/opentelemetry-instrumentation-mongodb@0.2.0","_nodeVersion":"18.20.2","_npmVersion":"lerna/7.4.2/node@v18.20.2+x64 (linux)","dist":{"integrity":"sha512-XQiOt8FKYnStF0Zx31AsIoTCEsq88dvPBHC9RDWuKst2Dqd8Ygf7QshVuQUFBn6IoxnJvYqxj8PwO1E+6as3Vg==","shasum":"b65d3119bada637dc786f7f756e1988c842036fe","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry-instrumentation-mongodb/-/opentelemetry-instrumentation-mongodb-0.2.0.tgz","fileCount":15,"unpackedSize":98835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGPgXwKSx/CB8v656etNTSN4tJnwbgbGgBVa39GpvEacAiBH6a5yEp6qGwv48kgn7Ga9b5tM3cI1hix2SWjpE00F7A=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry-instrumentation-mongodb_0.2.0_1716292413172_0.30369222371791893"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-13T08:22:33.189Z","0.0.0-2021-05-13--08-21":"2021-05-13T08:22:33.714Z","modified":"2024-05-21T11:53:33.568Z","0.0.0-2021-05-13--09-11":"2021-05-13T09:11:55.173Z","0.0.116":"2021-05-18T06:39:11.866Z","0.0.0-2021-05-25--13-59":"2021-05-25T14:00:01.637Z","0.0.0-2021-05-26--07-48":"2021-05-26T07:49:23.467Z","0.0.0-2021-05-26--12-57":"2021-05-26T12:58:25.156Z","0.0.0-2021-05-26--15-21":"2021-05-26T15:21:40.895Z","0.0.117":"2021-05-30T08:53:02.989Z","0.0.0-2021-05-31--15-02":"2021-05-31T15:03:38.104Z","0.0.0-2021-06-09--08-13":"2021-06-09T08:13:50.606Z","0.0.0-2021-06-15--13-22":"2021-06-15T13:22:45.823Z","0.0.0-2021-06-17--15-03":"2021-06-17T15:03:47.666Z","0.0.118":"2021-06-20T08:58:25.584Z","0.0.0-2021-06-23--08-28":"2021-06-23T08:28:49.058Z","0.0.0-2021-06-23--15-16":"2021-06-23T15:16:37.599Z","0.0.0-2021-06-29--15-16":"2021-06-29T15:16:55.991Z","0.0.119":"2021-07-05T12:07:47.588Z","0.0.0-2021-07-05--14-53":"2021-07-05T14:53:32.685Z","0.0.120":"2021-07-06T09:09:52.057Z","0.0.121":"2021-07-06T10:22:05.188Z","0.0.0-2021-07-07--15-00":"2021-07-07T15:00:59.207Z","0.0.122":"2021-07-07T16:04:44.289Z","0.0.123":"2021-07-14T11:11:17.247Z","0.0.0-2021-08-01--13-11":"2021-08-01T13:11:39.539Z","0.0.124":"2021-08-01T14:32:40.549Z","0.0.0-2021-09-19--10-55":"2021-09-19T10:55:49.297Z","0.0.125":"2021-09-19T14:16:26.134Z","0.0.126":"2021-09-23T14:29:41.485Z","0.0.127":"2021-10-10T08:01:11.115Z","0.0.128":"2021-10-26T11:33:44.480Z","0.0.0-2021-10-26--15-22":"2021-10-26T15:23:09.769Z","0.0.129":"2021-10-28T08:49:01.530Z","0.0.130":"2021-11-30T14:45:34.528Z","0.0.131":"2021-12-09T11:51:12.392Z","0.0.132":"2021-12-23T15:56:34.316Z","0.0.0-2021-12-27--15-59":"2021-12-27T16:00:28.866Z","0.0.0-2021-12-30--14-45":"2021-12-30T14:46:15.559Z","0.0.133":"2022-01-03T12:38:59.999Z","0.0.134":"2022-03-16T16:04:38.521Z","0.0.135":"2022-04-05T14:40:24.916Z","0.0.0-2022-06-06--12-29":"2022-06-06T12:30:23.615Z","0.0.136":"2022-06-07T08:43:32.761Z","0.0.0-2022-07-11--10-54":"2022-07-11T10:55:12.910Z","0.0.137":"2022-07-12T15:08:03.353Z","0.0.0-2022-11-02--07-46":"2022-11-02T07:46:49.980Z","0.0.138":"2022-11-02T09:44:38.180Z","0.0.0-2022-11-24--17-44":"2022-11-24T17:44:51.734Z","0.0.139":"2022-11-30T05:57:00.140Z","0.0.0-2023-03-01--13-22":"2023-03-01T13:23:02.105Z","0.0.140":"2023-03-01T14:58:47.930Z","0.0.0-2023-07-27--11-15":"2023-07-27T11:15:31.213Z","0.0.0-2023-07-30--08-42":"2023-07-30T08:42:55.401Z","0.0.142":"2023-09-21T09:58:22.913Z","0.1.0":"2023-10-17T13:44:40.963Z","0.0.0-2024-05-16--14-39":"2024-05-16T14:39:45.106Z","0.0.0-2024-05-21--09-06":"2024-05-21T09:06:57.058Z","0.2.0":"2024-05-21T11:53:33.317Z"},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"description":"Aspecto fork of OpenTelemetry mongodb automatic instrumentation package.","homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","keywords":["opentelemetry","mongodb","nodejs","tracing","profiling","plugin"],"repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"author":{"name":"OpenTelemetry Authors"},"bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"license":"Apache-2.0","readme":"# OpenTelemetry mongodb Instrumentation for Node.js\n[![Gitter chat][gitter-image]][gitter-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis is a fork of the instrumentation, to add features required by aspecto until they are merged into the main repo and published.\n\nThis module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native).\n\nFor automatic instrumentation see the\n[@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-node) package.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-mongodb\n```\n### Supported Versions\n - `'>=3.3 <4`\n\n## Usage\n\nOpenTelemetry Mongodb Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load a specific instrumentation (**mongodb** in this case), specify it in the Node Tracer's configuration.\n\n```javascript\nconst { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');\nconst { MongoDBInstrumentation } = require('@opentelemetry/instrumentation-mongodb');\n\nconst provider = new NodeTracerProvider();\nprovider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));\nprovider.register();\n\nconst mongodbInstrumentation = new MongoDBInstrumentation({\n  // see under for available configuration\n});\n```\n\n### Mongo instrumentation Options\n\nMongodb instrumentation has few options available to choose from. You can set the following:\n\n| Options | Type | Description |\n| ------- | ---- | ----------- |\n| `dbStatementSerializer` | `DbStatementSerializer` | Mongodb instrumentation will serialize `db.statement` using the specified function. |\n| `responseHook` | `MongoDbResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |\n| `moduleVersionAttributeName` | `string` | If passed, a span attribute will be added to all spans with key of the provided `moduleVersionAttributeName` and value of the patched module version. |\n| `requireParentSpan` | `boolean` | Require parent to create mongodb span, default when unset is true |\n| `ignoreIsMasterCommand` | `boolean` | If true, a span for periodical `isMaster` command will not be generated, default when unset is false. The mongodb client library periodically re-run the `isMaster` command to detect the replica set configuration changes. |\n| `aggregateGetMoreOperations` | `boolean` | If true, a span for a `getMore` command will not be generated, default when unset is false. |\n| `aggregateGetMoreResponseHook` | `MongoDbGetMoreResponseAggregateFunction` | Hook for aggregate a response payload of a GetMore operation, allows to add custom attributes to span. |\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 on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib/dev-status.svg?path=packages/opentelemetry-instrumentation-mongodb\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=packages%2Fopentelemetry-instrumentation-mongodb&type=dev\n","readmeFilename":"README.md"}