MCPcopy Create free account
hub / github.com/apache/skywalking-nodejs / install

Method install

src/plugins/IORedisPlugin.ts:31–35  ·  view source on GitHub ↗
(installer: PluginInstaller)

Source from the content-addressed store, hash-verified

29 readonly versions = '*';
30
31 install(installer: PluginInstaller): void {
32 const Redis = installer.require?.('ioredis') ?? require('ioredis');
33
34 this.interceptOperation(Redis, 'sendCommand');
35 }
36
37 interceptOperation(Cls: any, operation: string): void {
38 const _original = Cls.prototype[operation];

Callers

nothing calls this directly

Calls 1

interceptOperationMethod · 0.95

Tested by

no test coverage detected