@opentelemetry/instrumentation-mysql2
Advanced tools
Comparing version 0.33.0 to 0.33.1
@@ -34,7 +34,7 @@ "use strict"; | ||
api.diag.debug('Patching Connection.prototype.query'); | ||
if (instrumentation_1.isWrapped(ConnectionPrototype.query)) { | ||
if ((0, instrumentation_1.isWrapped)(ConnectionPrototype.query)) { | ||
this._unwrap(ConnectionPrototype, 'query'); | ||
} | ||
this._wrap(ConnectionPrototype, 'query', this._patchQuery(moduleExports.format)); | ||
if (instrumentation_1.isWrapped(ConnectionPrototype.execute)) { | ||
if ((0, instrumentation_1.isWrapped)(ConnectionPrototype.execute)) { | ||
this._unwrap(ConnectionPrototype, 'execute'); | ||
@@ -65,7 +65,7 @@ } | ||
} | ||
const span = thisPlugin.tracer.startSpan(utils_1.getSpanName(query), { | ||
const span = thisPlugin.tracer.startSpan((0, utils_1.getSpanName)(query), { | ||
kind: api.SpanKind.CLIENT, | ||
attributes: Object.assign(Object.assign(Object.assign({}, MySQL2Instrumentation.COMMON_ATTRIBUTES), utils_1.getConnectionAttributes(this.config)), { [semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: utils_1.getDbStatement(query, format, values) }), | ||
attributes: Object.assign(Object.assign(Object.assign({}, MySQL2Instrumentation.COMMON_ATTRIBUTES), (0, utils_1.getConnectionAttributes)(this.config)), { [semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: (0, utils_1.getDbStatement)(query, format, values) }), | ||
}); | ||
const endSpan = utils_1.once((err, results) => { | ||
const endSpan = (0, utils_1.once)((err, results) => { | ||
if (err) { | ||
@@ -80,3 +80,3 @@ span.setStatus({ | ||
if (typeof config.responseHook === 'function') { | ||
instrumentation_1.safeExecuteInTheMiddle(() => { | ||
(0, instrumentation_1.safeExecuteInTheMiddle)(() => { | ||
config.responseHook(span, { queryResults: results }); | ||
@@ -83,0 +83,0 @@ }, err => { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.33.0"; | ||
export declare const VERSION = "0.33.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.33.0'; | ||
exports.VERSION = '0.33.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-mysql2", | ||
"version": "0.33.0", | ||
"version": "0.33.1", | ||
"description": "OpenTelemetry mysql2 automatic instrumentation package.", | ||
@@ -52,3 +52,3 @@ "main": "build/src/index.js", | ||
"@opentelemetry/context-async-hooks": "^1.8.0", | ||
"@opentelemetry/contrib-test-utils": "^0.33.0", | ||
"@opentelemetry/contrib-test-utils": "^0.33.1", | ||
"@opentelemetry/sdk-trace-base": "^1.8.0", | ||
@@ -67,10 +67,10 @@ "@types/mocha": "7.0.2", | ||
"ts-mocha": "10.0.0", | ||
"typescript": "4.3.5" | ||
"typescript": "4.4.4" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.34.0", | ||
"@opentelemetry/instrumentation": "^0.35.1", | ||
"@opentelemetry/semantic-conventions": "^1.0.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mysql2#readme", | ||
"gitHead": "59fa57cfd0dff4ae0e6f3833dff73c55dfd79ee5" | ||
"gitHead": "63e0fc9b6b862f74304abf0343c506a5bd415191" | ||
} |
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
38099
+ Added@opentelemetry/instrumentation@0.35.1(transitive)
- Removed@opentelemetry/instrumentation@0.34.0(transitive)