@opentelemetry/instrumentation-mysql2
Advanced tools
Comparing version 0.38.0 to 0.38.1
@@ -26,3 +26,3 @@ "use strict"; | ||
class MySQL2Instrumentation extends instrumentation_1.InstrumentationBase { | ||
constructor(config) { | ||
constructor(config = {}) { | ||
super('@opentelemetry/instrumentation-mysql2', version_1.VERSION, config); | ||
@@ -34,3 +34,2 @@ } | ||
const ConnectionPrototype = moduleExports.Connection.prototype; | ||
api.diag.debug('Patching Connection.prototype.query'); | ||
if ((0, instrumentation_1.isWrapped)(ConnectionPrototype.query)) { | ||
@@ -57,3 +56,2 @@ this._unwrap(ConnectionPrototype, 'query'); | ||
const thisPlugin = this; | ||
api.diag.debug('MySQL2Instrumentation: patched mysql query/execute'); | ||
return function query(query, _valuesOrCallback, _callback) { | ||
@@ -60,0 +58,0 @@ const thisPluginConfig = thisPlugin._config; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.38.0"; | ||
export declare const VERSION = "0.38.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.38.0'; | ||
exports.VERSION = '0.38.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-mysql2", | ||
"version": "0.38.0", | ||
"version": "0.38.1", | ||
"description": "OpenTelemetry mysql2 automatic instrumentation package.", | ||
@@ -69,3 +69,3 @@ "main": "build/src/index.js", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mysql2#readme", | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
"gitHead": "a2e2b5a1aa2910b903829d215184c43d2107b9ac" | ||
} |
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
54997
377
1
0