Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/instrumentation-memcached

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-memcached - npm Package Compare versions

Comparing version 0.35.0 to 0.36.0

4

build/src/instrumentation.d.ts

@@ -5,3 +5,3 @@ import * as api from '@opentelemetry/api';

import { InstrumentationConfig } from './types';
export declare class Instrumentation extends InstrumentationBase<typeof Memcached> {
export declare class Instrumentation extends InstrumentationBase {
static readonly COMPONENT = "memcached";

@@ -14,3 +14,3 @@ static readonly COMMON_ATTRIBUTES: {

setConfig(config?: InstrumentationConfig): void;
init(): InstrumentationNodeModuleDefinition<typeof Memcached>[];
init(): InstrumentationNodeModuleDefinition[];
wrapCommand(moduleVersion: undefined | string, original: (queryCompiler: () => Memcached.CommandData, server?: string) => any): (this: Memcached, queryCompiler: () => Memcached.CommandData, server?: string | undefined) => any;

@@ -17,0 +17,0 @@ wrapQueryCompiler(original: () => Memcached.CommandData, client: Memcached, server: undefined | string, callbackContext: api.Context, span: api.Span): (this: Memcached) => Memcached.CommandData;

@@ -34,7 +34,5 @@ "use strict";

new instrumentation_1.InstrumentationNodeModuleDefinition('memcached', ['>=2.2'], (moduleExports, moduleVersion) => {
this._diag.debug(`Patching ${Instrumentation.COMPONENT}@${moduleVersion}`);
this.ensureWrapped(moduleVersion, moduleExports.prototype, 'command', this.wrapCommand.bind(this, moduleVersion));
this.ensureWrapped(moduleExports.prototype, 'command', this.wrapCommand.bind(this, moduleVersion));
return moduleExports;
}, (moduleExports, moduleVersion) => {
this._diag.debug(`Unpatching ${Instrumentation.COMPONENT}@${moduleVersion}`);
}, (moduleExports) => {
if (moduleExports === undefined)

@@ -88,4 +86,3 @@ return;

}
ensureWrapped(moduleVersion, obj, methodName, wrapper) {
this._diag.debug(`Applying ${methodName} patch for ${Instrumentation.COMPONENT}@${moduleVersion}`);
ensureWrapped(obj, methodName, wrapper) {
if ((0, instrumentation_1.isWrapped)(obj[methodName])) {

@@ -92,0 +89,0 @@ this._unwrap(obj, methodName);

@@ -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-memcached",
"version": "0.35.0",
"version": "0.36.0",
"description": "OpenTelemetry memcached automatic instrumentation package.",

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

"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/contrib-test-utils": "^0.38.0",
"@opentelemetry/contrib-test-utils": "^0.39.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",

@@ -64,3 +64,3 @@ "@opentelemetry/sdk-trace-node": "^1.8.0",

"dependencies": {
"@opentelemetry/instrumentation": "^0.50.0",
"@opentelemetry/instrumentation": "^0.51.0",
"@opentelemetry/semantic-conventions": "^1.0.0",

@@ -70,3 +70,3 @@ "@types/memcached": "^2.2.6"

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-memcached#readme",
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb"
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
}

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

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