@opentelemetry/instrumentation-typeorm 0.2.0 → 0.4.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.
@@ -1,3 +1,4 @@
1
- export * from './typeorm';
2
- export * from './types';
1
+ export { TypeormInstrumentation } from './typeorm';
2
+ export { ExtendedDatabaseAttribute } from './types';
3
+ export type { HookInfo, TypeormInstrumentationConfig, TypeormResponseCustomAttributesFunction, } from './types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExtendedDatabaseAttribute = exports.TypeormInstrumentation = void 0;
17
4
  /*
18
5
  * Copyright The OpenTelemetry Authors, Aspecto
19
6
  *
@@ -29,6 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
16
  * See the License for the specific language governing permissions and
30
17
  * limitations under the License.
31
18
  */
32
- __exportStar(require("./typeorm"), exports);
33
- __exportStar(require("./types"), exports);
19
+ var typeorm_1 = require("./typeorm");
20
+ Object.defineProperty(exports, "TypeormInstrumentation", { enumerable: true, get: function () { return typeorm_1.TypeormInstrumentation; } });
21
+ var types_1 = require("./types");
22
+ Object.defineProperty(exports, "ExtendedDatabaseAttribute", { enumerable: true, get: function () { return types_1.ExtendedDatabaseAttribute; } });
34
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAA0B;AAC1B,0CAAwB","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\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 */\nexport * from './typeorm';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,qCAAmD;AAA1C,iHAAA,sBAAsB,OAAA;AAC/B,iCAAoD;AAA3C,kHAAA,yBAAyB,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\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 */\nexport { TypeormInstrumentation } from './typeorm';\nexport { ExtendedDatabaseAttribute } from './types';\nexport type {\n HookInfo,\n TypeormInstrumentationConfig,\n TypeormResponseCustomAttributesFunction,\n} from './types';\n"]}
@@ -1,3 +1,3 @@
1
- export * from './get-func-param-names';
2
- export * from './suppressTracing';
1
+ export { getParamNames } from './get-func-param-names';
2
+ export { isTypeormInternalTracingSuppressed, suppressTypeormInternalTracing, } from './suppressTracing';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.suppressTypeormInternalTracing = exports.isTypeormInternalTracingSuppressed = exports.getParamNames = void 0;
17
4
  /*
18
5
  * Copyright The OpenTelemetry Authors, Aspecto
19
6
  *
@@ -29,6 +16,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
16
  * See the License for the specific language governing permissions and
30
17
  * limitations under the License.
31
18
  */
32
- __exportStar(require("./get-func-param-names"), exports);
33
- __exportStar(require("./suppressTracing"), exports);
19
+ var get_func_param_names_1 = require("./get-func-param-names");
20
+ Object.defineProperty(exports, "getParamNames", { enumerable: true, get: function () { return get_func_param_names_1.getParamNames; } });
21
+ var suppressTracing_1 = require("./suppressTracing");
22
+ Object.defineProperty(exports, "isTypeormInternalTracingSuppressed", { enumerable: true, get: function () { return suppressTracing_1.isTypeormInternalTracingSuppressed; } });
23
+ Object.defineProperty(exports, "suppressTypeormInternalTracing", { enumerable: true, get: function () { return suppressTracing_1.suppressTypeormInternalTracing; } });
34
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yDAAuC;AACvC,oDAAkC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\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 */\nexport * from './get-func-param-names';\nexport * from './suppressTracing';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,+DAAuD;AAA9C,qHAAA,aAAa,OAAA;AACtB,qDAG2B;AAFzB,qIAAA,kCAAkC,OAAA;AAClC,iIAAA,8BAA8B,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\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 */\nexport { getParamNames } from './get-func-param-names';\nexport {\n isTypeormInternalTracingSuppressed,\n suppressTypeormInternalTracing,\n} from './suppressTracing';\n"]}
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "0.2.0";
1
+ export declare const PACKAGE_VERSION = "0.4.0";
2
2
  export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-typeorm";
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.2.0';
20
+ exports.PACKAGE_VERSION = '0.4.0';
21
21
  exports.PACKAGE_NAME = '@opentelemetry/instrumentation-typeorm';
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,OAAO,CAAC;AAC1B,QAAA,YAAY,GAAG,wCAAwC,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.2.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-typeorm';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,YAAY,GAAG,wCAAwC,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.4.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-typeorm';\n"]}
package/package.json CHANGED
@@ -1,23 +1,28 @@
1
1
  {
2
2
  "name": "@opentelemetry/instrumentation-typeorm",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "OpenTelemetry instrumentation for `typeorm` database data-mapper ORM",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
7
- "repository": "open-telemetry/opentelemetry-js-contrib",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib.git",
10
+ "directory": "packages/instrumentation-typeorm"
11
+ },
8
12
  "scripts": {
9
13
  "clean": "rimraf build/*",
14
+ "setup:dev": "nx run-many -t compile -p @opentelemetry/instrumentation-typeorm",
10
15
  "compile": "tsc -p .",
11
16
  "lint": "eslint . --ext .ts",
12
17
  "lint:fix": "eslint . --ext .ts --fix",
13
- "lint:readme": "node ../../../scripts/lint-readme.js",
18
+ "lint:readme": "node ../../scripts/lint-readme.js",
14
19
  "prewatch": "npm run precompile",
15
20
  "prepublishOnly": "npm run compile",
16
21
  "tdd": "npm run test -- --watch-extensions ts --watch",
17
22
  "test": "nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'",
18
23
  "test-all-versions": "tav",
19
24
  "test:debug": "mocha --inspect-brk --no-timeouts 'test/**/*.test.ts'",
20
- "version:update": "node ../../../scripts/version-update.js",
25
+ "version:update": "node ../../scripts/version-update.js",
21
26
  "watch": "tsc -w"
22
27
  },
23
28
  "keywords": [
@@ -45,7 +50,7 @@
45
50
  },
46
51
  "devDependencies": {
47
52
  "@opentelemetry/api": "^1.3.0",
48
- "@opentelemetry/contrib-test-utils": "^0.47.0",
53
+ "@opentelemetry/contrib-test-utils": "^0.49.0",
49
54
  "@opentelemetry/sdk-trace-base": "^2.0.0",
50
55
  "@types/mocha": "10.0.10",
51
56
  "@types/node": "18.18.14",
@@ -57,8 +62,8 @@
57
62
  },
58
63
  "dependencies": {
59
64
  "@opentelemetry/core": "^2.0.0",
60
- "@opentelemetry/instrumentation": "^0.201.0"
65
+ "@opentelemetry/instrumentation": "^0.203.0"
61
66
  },
62
- "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-typeorm#readme",
63
- "gitHead": "393b51596dc869983a03ce8857658029ca122a15"
67
+ "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-typeorm#readme",
68
+ "gitHead": "e7960a2061c0a039ffa57ed8dbb73d605d65f4f6"
64
69
  }