Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-tedious

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-tedious - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

17

build/src/instrumentation.js

@@ -41,3 +41,3 @@ "use strict";

class TediousInstrumentation extends instrumentation_1.InstrumentationBase {
constructor(config) {
constructor(config = {}) {
super('@opentelemetry/instrumentation-tedious', version_1.VERSION, config);

@@ -87,3 +87,2 @@ }

const thisPlugin = this;
this._diag.debug(`TediousInstrumentation: patched Connection.prototype.${operation}`);
function patchedMethod(request) {

@@ -112,10 +111,10 @@ var _a, _b, _c, _d, _e, _f, _g, _h;

attributes: {
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: semantic_conventions_1.DbSystemValues.MSSQL,
[semantic_conventions_1.SemanticAttributes.DB_NAME]: databaseName,
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.port,
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: (_c = this.config) === null || _c === void 0 ? void 0 : _c.server,
[semantic_conventions_1.SEMATTRS_DB_SYSTEM]: semantic_conventions_1.DBSYSTEMVALUES_MSSQL,
[semantic_conventions_1.SEMATTRS_DB_NAME]: databaseName,
[semantic_conventions_1.SEMATTRS_NET_PEER_PORT]: (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.port,
[semantic_conventions_1.SEMATTRS_NET_PEER_NAME]: (_c = this.config) === null || _c === void 0 ? void 0 : _c.server,
// >=4 uses `authentication` object, older versions just userName and password pair
[semantic_conventions_1.SemanticAttributes.DB_USER]: (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.userName) !== null && _e !== void 0 ? _e : (_h = (_g = (_f = this.config) === null || _f === void 0 ? void 0 : _f.authentication) === null || _g === void 0 ? void 0 : _g.options) === null || _h === void 0 ? void 0 : _h.userName,
[semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: sql,
[semantic_conventions_1.SemanticAttributes.DB_SQL_TABLE]: request.table,
[semantic_conventions_1.SEMATTRS_DB_USER]: (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.userName) !== null && _e !== void 0 ? _e : (_h = (_g = (_f = this.config) === null || _f === void 0 ? void 0 : _f.authentication) === null || _g === void 0 ? void 0 : _g.options) === null || _h === void 0 ? void 0 : _h.userName,
[semantic_conventions_1.SEMATTRS_DB_STATEMENT]: sql,
[semantic_conventions_1.SEMATTRS_DB_SQL_TABLE]: request.table,
},

@@ -122,0 +121,0 @@ });

@@ -1,2 +0,2 @@

export declare const VERSION = "0.10.0";
export declare const VERSION = "0.10.1";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.10.0';
exports.VERSION = '0.10.1';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-tedious",
"version": "0.10.0",
"version": "0.10.1",
"description": "OpenTelemetry instrumentation for `tedious`",

@@ -66,7 +66,7 @@ "main": "build/src/index.js",

"@opentelemetry/instrumentation": "^0.51.0",
"@opentelemetry/semantic-conventions": "^1.0.0",
"@opentelemetry/semantic-conventions": "^1.22.0",
"@types/tedious": "^4.0.10"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-tedious#readme",
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
"gitHead": "a2e2b5a1aa2910b903829d215184c43d2107b9ac"
}

@@ -43,2 +43,18 @@ # OpenTelemetry Tedious Instrumentation for Node.js

## Semantic Conventions
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)
Attributes collected:
| Attribute | Short Description |
| ----------------------- | ------------------------------------------------------------------------------ |
| `db.name` | This attribute is used to report the name of the database being accessed. |
| `db.sql.table` | The name of the primary table that the operation is acting upon. |
| `db.statement` | The database statement being executed. |
| `db.system` | An identifier for the database management system (DBMS) product being used. |
| `db.user` | Username for accessing the database. |
| `net.peer.name` | Remote hostname or similar. |
| `net.peer.port` | Remote port number. |
## Useful links

@@ -45,0 +61,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc