@opentelemetry/instrumentation-memcached
Advanced tools
Comparing version 0.35.0 to 0.36.0
@@ -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
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
43640
262
+ Added@opentelemetry/api-logs@0.51.1(transitive)
+ Added@opentelemetry/instrumentation@0.51.1(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedimport-in-the-middle@1.7.4(transitive)
- Removed@opentelemetry/api-logs@0.50.0(transitive)
- Removed@opentelemetry/instrumentation@0.50.0(transitive)
- Removedacorn-import-assertions@1.9.0(transitive)
- Removedimport-in-the-middle@1.7.1(transitive)