Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-mysql2

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-mysql2 - npm Package Compare versions

Comparing version 0.40.0 to 0.41.0

2

build/src/instrumentation.d.ts
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { MySQL2InstrumentationConfig } from './types';
export declare class MySQL2Instrumentation extends InstrumentationBase {
export declare class MySQL2Instrumentation extends InstrumentationBase<MySQL2InstrumentationConfig> {
static readonly COMMON_ATTRIBUTES: {

@@ -5,0 +5,0 @@ "db.system": string;

@@ -55,3 +55,2 @@ "use strict";

return function query(query, _valuesOrCallback, _callback) {
const thisPluginConfig = thisPlugin._config;
let values;

@@ -68,3 +67,4 @@ if (Array.isArray(_valuesOrCallback)) {

});
if (!isPrepared && thisPluginConfig.addSqlCommenterCommentToQueries) {
if (!isPrepared &&
thisPlugin.getConfig().addSqlCommenterCommentToQueries) {
arguments[0] = query =

@@ -85,5 +85,6 @@ typeof query === 'string'

else {
if (typeof thisPluginConfig.responseHook === 'function') {
const { responseHook } = thisPlugin.getConfig();
if (typeof responseHook === 'function') {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => {
thisPluginConfig.responseHook(span, {
responseHook(span, {
queryResults: results,

@@ -90,0 +91,0 @@ });

@@ -1,3 +0,3 @@

export declare const PACKAGE_VERSION = "0.40.0";
export declare const PACKAGE_VERSION = "0.41.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-mysql2";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.40.0';
exports.PACKAGE_VERSION = '0.41.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-mysql2';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-mysql2",
"version": "0.40.0",
"version": "0.41.0",
"description": "OpenTelemetry instrumentation for `mysql2` database client for MySQL",

@@ -49,12 +49,12 @@ "main": "build/src/index.js",

"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/contrib-test-utils": "^0.40.0",
"@opentelemetry/contrib-test-utils": "^0.41.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@types/mocha": "7.0.2",
"@types/node": "18.6.5",
"@types/semver": "7.5.3",
"@types/semver": "7.5.8",
"mocha": "7.2.0",
"mysql2": "2.3.3",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"semver": "7.5.4",
"rimraf": "5.0.10",
"semver": "7.6.3",
"test-all-versions": "6.1.0",

@@ -65,8 +65,8 @@ "ts-mocha": "10.0.0",

"dependencies": {
"@opentelemetry/instrumentation": "^0.52.0",
"@opentelemetry/semantic-conventions": "^1.22.0",
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/semantic-conventions": "^1.27.0",
"@opentelemetry/sql-common": "^0.40.1"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mysql2#readme",
"gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7"
"gitHead": "9dc58afed8134f95908331bcff35c5d9ec46fe9a"
}

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