@opentelemetry/instrumentation-mongoose 0.39.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm install --save @opentelemetry/instrumentation-mongoose
17
17
 
18
18
  ## Supported Versions
19
19
 
20
- - `>=5.9.7 <7`
20
+ - [`mongoose`](https://www.npmjs.com/package/mongoose) versions `>=5.9.7 <7`
21
21
 
22
22
  ## Usage
23
23
 
@@ -38,20 +38,6 @@ registerInstrumentations({
38
38
  })
39
39
  ```
40
40
 
41
- ## Migration From opentelemetry-instrumentation-mongoose
42
-
43
- This instrumentation was originally published and maintained under the name `"opentelemetry-instrumentation-mongoose"` in [this repo](https://github.com/aspecto-io/opentelemetry-ext-js).
44
-
45
- Few breaking changes were made during porting to the contrib repo to align with conventions:
46
-
47
- ### Hook Info
48
-
49
- The instrumentation's config `responseHook` functions signature changed, so the second function parameter is info object, containing the relevant hook data.
50
-
51
- ### `moduleVersionAttributeName` config option
52
-
53
- The `moduleVersionAttributeName` config option is removed. To add the mongoose package version to spans, use the `moduleVersion` attribute in hook info for `responseHook` function.
54
-
55
41
  ## Semantic Conventions
56
42
 
57
43
  This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "0.39.0";
1
+ export declare const PACKAGE_VERSION = "0.40.0";
2
2
  export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-mongoose";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -17,6 +17,6 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.PACKAGE_VERSION = '0.39.0';
20
+ exports.PACKAGE_VERSION = '0.40.0';
21
21
  exports.PACKAGE_NAME = '@opentelemetry/instrumentation-mongoose';
22
22
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,yCAAyC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.39.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-mongoose';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,yCAAyC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.40.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-mongoose';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/instrumentation-mongoose",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "OpenTelemetry instrumentation for `mongoose` database object data modeling (ODM) library for MongoDB",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -13,6 +13,7 @@
13
13
  "clean": "rimraf build/*",
14
14
  "lint": "eslint . --ext .ts",
15
15
  "lint:fix": "eslint . --ext .ts --fix",
16
+ "lint:readme": "node ../../../scripts/lint-readme.js",
16
17
  "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-mongoose --include-dependencies",
17
18
  "prewatch": "npm run precompile",
18
19
  "prepublishOnly": "npm run compile",
@@ -65,5 +66,5 @@
65
66
  "@opentelemetry/semantic-conventions": "^1.22.0"
66
67
  },
67
68
  "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-mongoose#readme",
68
- "gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
69
+ "gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7"
69
70
  }