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.37.0 to 0.38.0

5

build/src/index.d.ts

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

import { Instrumentation } from './instrumentation';
export * from './instrumentation';
export * from './types';
export * from './instrumentation';
export default Instrumentation;
export { Instrumentation as MemcachedInstrumentation };
//# sourceMappingURL=index.d.ts.map

6

build/src/index.js

@@ -28,8 +28,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemcachedInstrumentation = void 0;
const instrumentation_1 = require("./instrumentation");
Object.defineProperty(exports, "MemcachedInstrumentation", { enumerable: true, get: function () { return instrumentation_1.Instrumentation; } });
__exportStar(require("./instrumentation"), exports);
__exportStar(require("./types"), exports);
__exportStar(require("./instrumentation"), exports);
exports.default = instrumentation_1.Instrumentation;
//# sourceMappingURL=index.js.map

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

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

@@ -8,0 +8,0 @@ static readonly COMMON_ATTRIBUTES: {

@@ -18,3 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Instrumentation = void 0;
exports.MemcachedInstrumentation = void 0;
const api = require("@opentelemetry/api");

@@ -25,12 +25,12 @@ const instrumentation_1 = require("@opentelemetry/instrumentation");

const version_1 = require("./version");
class Instrumentation extends instrumentation_1.InstrumentationBase {
class MemcachedInstrumentation extends instrumentation_1.InstrumentationBase {
constructor(config = {}) {
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, Object.assign({}, Instrumentation.DEFAULT_CONFIG, config));
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, Object.assign({}, MemcachedInstrumentation.DEFAULT_CONFIG, config));
}
setConfig(config = {}) {
this._config = Object.assign({}, Instrumentation.DEFAULT_CONFIG, config);
this._config = Object.assign({}, MemcachedInstrumentation.DEFAULT_CONFIG, config);
}
init() {
return [
new instrumentation_1.InstrumentationNodeModuleDefinition('memcached', ['>=2.2'], (moduleExports, moduleVersion) => {
new instrumentation_1.InstrumentationNodeModuleDefinition('memcached', ['>=2.2.0 <3'], (moduleExports, moduleVersion) => {
this.ensureWrapped(moduleExports.prototype, 'command', this.wrapCommand.bind(this, moduleVersion));

@@ -55,3 +55,3 @@ return moduleExports;

kind: api.SpanKind.CLIENT,
attributes: Object.assign({ 'memcached.version': moduleVersion }, Instrumentation.COMMON_ATTRIBUTES),
attributes: Object.assign({ 'memcached.version': moduleVersion }, MemcachedInstrumentation.COMMON_ATTRIBUTES),
});

@@ -95,10 +95,10 @@ const parentContext = api.context.active();

}
exports.Instrumentation = Instrumentation;
Instrumentation.COMPONENT = 'memcached';
Instrumentation.COMMON_ATTRIBUTES = {
exports.MemcachedInstrumentation = MemcachedInstrumentation;
MemcachedInstrumentation.COMPONENT = 'memcached';
MemcachedInstrumentation.COMMON_ATTRIBUTES = {
[semantic_conventions_1.SEMATTRS_DB_SYSTEM]: semantic_conventions_1.DBSYSTEMVALUES_MEMCACHED,
};
Instrumentation.DEFAULT_CONFIG = {
MemcachedInstrumentation.DEFAULT_CONFIG = {
enhancedDatabaseReporting: false,
};
//# sourceMappingURL=instrumentation.js.map

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

export declare const PACKAGE_VERSION = "0.37.0";
export declare const PACKAGE_VERSION = "0.38.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-memcached";
//# sourceMappingURL=version.d.ts.map

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

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

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

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-memcached#readme",
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
"gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7"
}

@@ -20,3 +20,3 @@ # OpenTelemetry Memcached Instrumentation for Node.js

- `>=2.2`
- [`memcached`](https://www.npmjs.com/package/memcached) versions `>=2.2.0 <3`

@@ -23,0 +23,0 @@ ## Usage

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