@opentelemetry/instrumentation-mysql
Advanced tools
Comparing version 0.35.0 to 0.36.0
@@ -7,3 +7,3 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
static readonly COMMON_ATTRIBUTES: { | ||
[x: string]: "mysql"; | ||
"db.system": "mysql"; | ||
}; | ||
@@ -10,0 +10,0 @@ private _connectionsUsage; |
@@ -27,5 +27,14 @@ "use strict"; | ||
const { host, port, database, user } = getConfig(config); | ||
const portNumber = parseInt(port, 10); | ||
if (!isNaN(portNumber)) { | ||
return { | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: host, | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: portNumber, | ||
[semantic_conventions_1.SemanticAttributes.DB_CONNECTION_STRING]: getJDBCString(host, port, database), | ||
[semantic_conventions_1.SemanticAttributes.DB_NAME]: database, | ||
[semantic_conventions_1.SemanticAttributes.DB_USER]: user, | ||
}; | ||
} | ||
return { | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: host, | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: port, | ||
[semantic_conventions_1.SemanticAttributes.DB_CONNECTION_STRING]: getJDBCString(host, port, database), | ||
@@ -32,0 +41,0 @@ [semantic_conventions_1.SemanticAttributes.DB_NAME]: database, |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.0"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.35.0'; | ||
exports.VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-mysql", | ||
"version": "0.35.0", | ||
"version": "0.36.0", | ||
"description": "OpenTelemetry mysql automatic instrumentation package.", | ||
@@ -17,5 +17,4 @@ "main": "build/src/index.js", | ||
"tdd": "npm run test -- --watch-extensions ts --watch", | ||
"test": "nyc ts-mocha tsconfig.json 'test/**/*.test.ts'", | ||
"version:update": "node ../../../scripts/version-update.js", | ||
"compile:examples": "cd examples && npm run compile" | ||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", | ||
"version:update": "node ../../../scripts/version-update.js" | ||
}, | ||
@@ -49,3 +48,3 @@ "keywords": [ | ||
"@opentelemetry/context-async-hooks": "^1.8.0", | ||
"@opentelemetry/contrib-test-utils": "^0.36.0", | ||
"@opentelemetry/contrib-test-utils": "^0.37.0", | ||
"@opentelemetry/sdk-metrics": "^1.8.0", | ||
@@ -65,3 +64,3 @@ "@opentelemetry/sdk-trace-base": "^1.8.0", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.48.0", | ||
"@opentelemetry/instrumentation": "^0.49.1", | ||
"@opentelemetry/semantic-conventions": "^1.0.0", | ||
@@ -71,3 +70,3 @@ "@types/mysql": "2.15.22" | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mysql#readme", | ||
"gitHead": "32204a362d9dffd4cd69a1300e1f7d245df9df52" | ||
"gitHead": "fcea8ca0c83cb1dcd8ac736e5ea4d22ff20dc982" | ||
} |
@@ -43,3 +43,3 @@ # OpenTelemetry mysql Instrumentation for Node.js | ||
See [examples](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mysql/examples) for a short example. | ||
See [examples/mysql](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main//examples/mysql) for a short example. | ||
@@ -46,0 +46,0 @@ ### MySQL instrumentation Options |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
75854
559
+ Added@opentelemetry/api-logs@0.49.1(transitive)
+ Added@opentelemetry/instrumentation@0.49.1(transitive)
- Removed@opentelemetry/instrumentation@0.48.0(transitive)