Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-memcached

Package Overview
Dependencies
Maintainers
3
Versions
28
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.38.0 to 0.39.0

2

build/src/instrumentation.d.ts

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

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

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

@@ -26,6 +26,6 @@ "use strict";

constructor(config = {}) {
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, Object.assign({}, MemcachedInstrumentation.DEFAULT_CONFIG, config));
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, Object.assign(Object.assign({}, MemcachedInstrumentation.DEFAULT_CONFIG), config));
}
setConfig(config = {}) {
this._config = Object.assign({}, MemcachedInstrumentation.DEFAULT_CONFIG, config);
super.setConfig(Object.assign(Object.assign({}, MemcachedInstrumentation.DEFAULT_CONFIG), config));
}

@@ -67,3 +67,4 @@ init() {

span.updateName(`memcached ${query.type}`);
span.setAttributes(Object.assign({ 'db.memcached.key': query.key, 'db.memcached.lifetime': query.lifetime, [semantic_conventions_1.SEMATTRS_DB_OPERATION]: query.type, [semantic_conventions_1.SEMATTRS_DB_STATEMENT]: instrumentation._config.enhancedDatabaseReporting
span.setAttributes(Object.assign({ 'db.memcached.key': query.key, 'db.memcached.lifetime': query.lifetime, [semantic_conventions_1.SEMATTRS_DB_OPERATION]: query.type, [semantic_conventions_1.SEMATTRS_DB_STATEMENT]: instrumentation.getConfig()
.enhancedDatabaseReporting
? query.command

@@ -70,0 +71,0 @@ : undefined }, utils.getPeerAttributes(client, server, query)));

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

export declare const PACKAGE_VERSION = "0.38.0";
export declare const PACKAGE_VERSION = "0.39.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.38.0';
exports.PACKAGE_VERSION = '0.39.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-memcached';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-memcached",
"version": "0.38.0",
"version": "0.39.0",
"description": "OpenTelemetry instrumentation for `memcached` database client for memcached",

@@ -49,3 +49,3 @@ "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",

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

"nyc": "15.1.0",
"rimraf": "5.0.5",
"rimraf": "5.0.10",
"ts-mocha": "10.0.0",

@@ -65,8 +65,8 @@ "typescript": "4.4.4"

"dependencies": {
"@opentelemetry/instrumentation": "^0.52.0",
"@opentelemetry/semantic-conventions": "^1.23.0",
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/semantic-conventions": "^1.27.0",
"@types/memcached": "^2.2.6"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-memcached#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