@opentelemetry/instrumentation-mysql
Advanced tools
Comparing version 0.27.1 to 0.28.0
@@ -5,5 +5,4 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
export declare class MySQLInstrumentation extends InstrumentationBase<typeof mysqlTypes> { | ||
static readonly COMPONENT = "mysql"; | ||
static readonly COMMON_ATTRIBUTES: { | ||
[x: string]: string; | ||
[x: string]: "mysql"; | ||
}; | ||
@@ -10,0 +9,0 @@ constructor(config?: MySQLInstrumentationConfig); |
@@ -195,6 +195,5 @@ "use strict"; | ||
exports.MySQLInstrumentation = MySQLInstrumentation; | ||
MySQLInstrumentation.COMPONENT = 'mysql'; | ||
MySQLInstrumentation.COMMON_ATTRIBUTES = { | ||
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: MySQLInstrumentation.COMPONENT, | ||
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: semantic_conventions_1.DbSystemValues.MYSQL, | ||
}; | ||
//# sourceMappingURL=instrumentation.js.map |
@@ -30,3 +30,3 @@ "use strict"; | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: port, | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_IP]: getJDBCString(host, port, database), | ||
[semantic_conventions_1.SemanticAttributes.DB_CONNECTION_STRING]: getJDBCString(host, port, database), | ||
[semantic_conventions_1.SemanticAttributes.DB_NAME]: database, | ||
@@ -33,0 +33,0 @@ [semantic_conventions_1.SemanticAttributes.DB_USER]: user, |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.27.1"; | ||
export declare const VERSION = "0.28.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.27.1'; | ||
exports.VERSION = '0.28.0'; | ||
//# sourceMappingURL=version.js.map |
# Changelog | ||
## [0.28.0](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-mysql-v0.27.1...instrumentation-mysql-v0.28.0) (2022-03-02) | ||
### ⚠ BREAKING CHANGES | ||
* **mysql*,redis:** net.peer.ip -> db.connection_string | ||
### Bug Fixes | ||
* **mysql*,redis:** net.peer.ip -> db.connection_string ([bf39b90](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/bf39b908fd64cec92c862b2deca5d760ddcf4509)) | ||
### [0.27.1](https://www.github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-mysql-v0.27.0...instrumentation-mysql-v0.27.1) (2022-01-24) | ||
@@ -46,2 +57,2 @@ | ||
* devDependencies | ||
* @opentelemetry/contrib-test-utils bumped from ^0.25.0 to ^0.27.0 | ||
* @opentelemetry/contrib-test-utils bumped from ^0.25.0 to ^0.27.0 |
{ | ||
"name": "@opentelemetry/instrumentation-mysql", | ||
"version": "0.27.1", | ||
"version": "0.28.0", | ||
"description": "OpenTelemetry mysql automatic instrumentation package.", | ||
@@ -10,3 +10,2 @@ "main": "build/src/index.js", | ||
"clean": "rimraf build/*", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
"compile": "npm run version:update && tsc -p .", | ||
@@ -55,4 +54,3 @@ "lint:fix": "eslint . --ext .ts --fix", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "14.17.9", | ||
"codecov": "3.8.3", | ||
"@types/node": "16.11.21", | ||
"gts": "3.1.0", | ||
@@ -71,3 +69,3 @@ "mocha": "7.2.0", | ||
}, | ||
"gitHead": "edfc04cbe3e7faaa365724ddc26bf702b68cc008" | ||
"gitHead": "78717b6dda677bf737811c34df21ef0ec88c31a3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45033
13
385