From e829f07e48a35ed514390fe620686bdb7f412655 Mon Sep 17 00:00:00 2001 From: vmarchaud Date: Sun, 27 Oct 2019 16:39:50 +0100 Subject: [PATCH] chore: rename mongodb plugin to mongodb-core --- .../.npmignore | 0 .../LICENSE | 0 .../README.md | 16 ++++++++-------- .../package.json | 6 +++--- .../src/index.ts | 0 .../src/mongodb.ts | 0 .../src/types.ts | 0 .../test/mongodb.test.ts | 0 .../tsconfig.json | 0 .../tslint.json | 0 10 files changed, 11 insertions(+), 11 deletions(-) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/.npmignore (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/LICENSE (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/README.md (77%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/package.json (90%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/src/index.ts (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/src/mongodb.ts (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/src/types.ts (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/test/mongodb.test.ts (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/tsconfig.json (100%) rename packages/{opentelemetry-plugin-mongodb => opentelemetry-plugin-mongodb-core}/tslint.json (100%) 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 90% rename from packages/opentelemetry-plugin-mongodb/package.json rename to packages/opentelemetry-plugin-mongodb-core/package.json index 9495b533ac0..b719b3fb650 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.2.0", - "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", @@ -18,7 +18,7 @@ }, "keywords": [ "opentelemetry", - "mongodb", + "mongodb-core", "nodejs", "tracing", "profiling", 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