@opentelemetry/instrumentation-typeorm 0.9.0 → 0.9.1
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 +7 -7
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +4 -9
package/README.md
CHANGED
|
@@ -42,19 +42,19 @@ registerInstrumentations({
|
|
|
42
42
|
|
|
43
43
|
You can set the following:
|
|
44
44
|
|
|
45
|
-
| Options
|
|
46
|
-
|
|
47
|
-
| `responseHook`
|
|
48
|
-
| `suppressInternalInstrumentation` | boolean
|
|
49
|
-
| `enableInternalInstrumentation`
|
|
50
|
-
| `enhancedDatabaseReporting`
|
|
45
|
+
| Options | Type | Description |
|
|
46
|
+
|-----------------------------------|-------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
47
|
+
| `responseHook` | `TypeormResponseCustomAttributesFunction` | Hook called before response is returned, which allows to add custom attributes to span. |
|
|
48
|
+
| `suppressInternalInstrumentation` | boolean | Typeorm uses mongodb/postgres/mysql/mariadb/etc. under the hood. If, for example, postgres instrumentation is enabled, a postgres operation will also create a postgres span describing the communication. Setting the `suppressInternalInstrumentation` config value to `true` will cause the instrumentation to suppress instrumentation of underlying operations. |
|
|
49
|
+
| `enableInternalInstrumentation` | boolean | Some methods such as `getManyAndCount` can generate internally multiple spans. To instrument those set this to `true` |
|
|
50
|
+
| `enhancedDatabaseReporting` | boolean | set to `true` if you want to capture the parameter values for parameterized SQL queries (**may leak sensitive information**) |
|
|
51
51
|
|
|
52
52
|
## Semantic Conventions
|
|
53
53
|
|
|
54
54
|
Attributes collected:
|
|
55
55
|
|
|
56
56
|
| Attribute | Short Description |
|
|
57
|
-
|
|
57
|
+
|----------------------|-----------------------------------------------------------------------------|
|
|
58
58
|
| `db.namespace` | The name of the database being accessed. |
|
|
59
59
|
| `db.operation.name` | The name of the operation being executed (e.g. the SQL keyword). |
|
|
60
60
|
| `db.collection.name` | The name of the table being accessed. |
|
package/build/src/version.d.ts
CHANGED
package/build/src/version.js
CHANGED
|
@@ -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.9.
|
|
20
|
+
exports.PACKAGE_VERSION = '0.9.1';
|
|
21
21
|
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-typeorm';
|
|
22
22
|
//# sourceMappingURL=version.js.map
|
package/build/src/version.js.map
CHANGED
|
@@ -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.9.
|
|
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.9.1';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-typeorm';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/instrumentation-typeorm",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
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",
|
|
@@ -48,20 +48,15 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@opentelemetry/api": "^1.3.0",
|
|
51
|
-
"@opentelemetry/contrib-test-utils": "^0.
|
|
51
|
+
"@opentelemetry/contrib-test-utils": "^0.56.0",
|
|
52
52
|
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
53
|
-
"@types/mocha": "10.0.10",
|
|
54
|
-
"@types/node": "18.18.14",
|
|
55
|
-
"nyc": "15.1.0",
|
|
56
|
-
"rimraf": "5.0.10",
|
|
57
53
|
"sqlite3": "^5.0.2",
|
|
58
|
-
"typeorm": "^0.3.21"
|
|
59
|
-
"typescript": "5.0.4"
|
|
54
|
+
"typeorm": "^0.3.21"
|
|
60
55
|
},
|
|
61
56
|
"dependencies": {
|
|
62
57
|
"@opentelemetry/core": "^2.0.0",
|
|
63
58
|
"@opentelemetry/instrumentation": "^0.208.0"
|
|
64
59
|
},
|
|
65
60
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-typeorm#readme",
|
|
66
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "66935ac724cc271f70028035e534d47a4dfbcf12"
|
|
67
62
|
}
|