diff --git a/packages/opentelemetry-plugin-mongodb/.npmignore b/packages/opentelemetry-plugin-mongodb-core/.npmignore similarity index 100% rename from packages/opentelemetry-plugin-mongodb/.npmignore rename to packages/opentelemetry-plugin-mongodb-core/.npmignore diff --git a/packages/opentelemetry-plugin-mongodb/LICENSE b/packages/opentelemetry-plugin-mongodb-core/LICENSE similarity index 100% rename from packages/opentelemetry-plugin-mongodb/LICENSE rename to packages/opentelemetry-plugin-mongodb-core/LICENSE diff --git a/packages/opentelemetry-plugin-mongodb/README.md b/packages/opentelemetry-plugin-mongodb-core/README.md similarity index 77% rename from packages/opentelemetry-plugin-mongodb/README.md rename to packages/opentelemetry-plugin-mongodb-core/README.md index 6c05d1b0da1..1c6ed4aac60 100644 --- a/packages/opentelemetry-plugin-mongodb/README.md +++ b/packages/opentelemetry-plugin-mongodb-core/README.md @@ -1,10 +1,10 @@ -# OpenTelemetry mongodb Instrumentation for Node.js +# OpenTelemetry mongodb-core Instrumentation for Node.js [![Gitter chat][gitter-image]][gitter-url] [![dependencies][dependencies-image]][dependencies-url] [![devDependencies][devDependencies-image]][devDependencies-url] [![Apache License][license-image]][license-image] -This module provides automatic instrumentation for [`mongodb`](https://github.com/mongodb/node-mongodb-native). +This module provides automatic instrumentation for [`mongodb-core`](https://github.com/mongodb-js/mongodb-core). For automatic instrumentation see the [@opentelemetry/node](https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-node) package. @@ -12,13 +12,13 @@ For automatic instrumentation see the ## Installation ```bash -npm install --save @opentelemetry/plugin-mongodb +npm install --save @opentelemetry/plugin-mongodb-core ``` ## Usage ```js -const opentelemetry = require('@opentelemetry/plugin-mongodb'); +const opentelemetry = require('@opentelemetry/plugin-mongodb-core'); // TODO: DEMONSTRATE API ``` @@ -36,7 +36,7 @@ Apache 2.0 - See [LICENSE][license-url] for more information. [gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge [license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/master/LICENSE [license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat -[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js/status.svg?path=packages/opentelemetry-plugin-mongodb -[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-plugin-mongodb -[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js/dev-status.svg?path=packages/opentelemetry-plugin-mongodb -[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-plugin-mongodb&type=dev +[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js/status.svg?path=packages/opentelemetry-plugin-mongodb-core +[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-plugin-mongodb-core +[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js/dev-status.svg?path=packages/opentelemetry-plugin-mongodb-core +[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-plugin-mongodb-core&type=dev diff --git a/packages/opentelemetry-plugin-mongodb/package.json b/packages/opentelemetry-plugin-mongodb-core/package.json similarity index 91% rename from packages/opentelemetry-plugin-mongodb/package.json rename to packages/opentelemetry-plugin-mongodb-core/package.json index de7fb18cf30..0947806fb53 100644 --- a/packages/opentelemetry-plugin-mongodb/package.json +++ b/packages/opentelemetry-plugin-mongodb-core/package.json @@ -1,7 +1,7 @@ { - "name": "@opentelemetry/plugin-mongodb", + "name": "@opentelemetry/plugin-mongodb-core", "version": "0.1.1", - "description": "OpenTelemetry mongodb automatic instrumentation package.", + "description": "OpenTelemetry mongodb-core automatic instrumentation package.", "private": true, "main": "build/src/index.js", "types": "build/src/index.d.ts", diff --git a/packages/opentelemetry-plugin-mongodb/src/index.ts b/packages/opentelemetry-plugin-mongodb-core/src/index.ts similarity index 100% rename from packages/opentelemetry-plugin-mongodb/src/index.ts rename to packages/opentelemetry-plugin-mongodb-core/src/index.ts diff --git a/packages/opentelemetry-plugin-mongodb/src/mongodb.ts b/packages/opentelemetry-plugin-mongodb-core/src/mongodb.ts similarity index 100% rename from packages/opentelemetry-plugin-mongodb/src/mongodb.ts rename to packages/opentelemetry-plugin-mongodb-core/src/mongodb.ts diff --git a/packages/opentelemetry-plugin-mongodb/src/types.ts b/packages/opentelemetry-plugin-mongodb-core/src/types.ts similarity index 100% rename from packages/opentelemetry-plugin-mongodb/src/types.ts rename to packages/opentelemetry-plugin-mongodb-core/src/types.ts diff --git a/packages/opentelemetry-plugin-mongodb/test/mongodb.test.ts b/packages/opentelemetry-plugin-mongodb-core/test/mongodb.test.ts similarity index 100% rename from packages/opentelemetry-plugin-mongodb/test/mongodb.test.ts rename to packages/opentelemetry-plugin-mongodb-core/test/mongodb.test.ts diff --git a/packages/opentelemetry-plugin-mongodb/tsconfig.json b/packages/opentelemetry-plugin-mongodb-core/tsconfig.json similarity index 100% rename from packages/opentelemetry-plugin-mongodb/tsconfig.json rename to packages/opentelemetry-plugin-mongodb-core/tsconfig.json diff --git a/packages/opentelemetry-plugin-mongodb/tslint.json b/packages/opentelemetry-plugin-mongodb-core/tslint.json similarity index 100% rename from packages/opentelemetry-plugin-mongodb/tslint.json rename to packages/opentelemetry-plugin-mongodb-core/tslint.json