MCPcopy Index your code
hub / github.com/apache/skywalking-nodejs / hookCursorMaybe

Method hookCursorMaybe

src/plugins/MongoDBPlugin.ts:36–42  ·  view source on GitHub ↗
(span: any, cursor: any)

Source from the content-addressed store, hash-verified

34 Db: any;
35
36 hookCursorMaybe(span: any, cursor: any): boolean {
37 if (!(cursor instanceof this.Cursor)) return false;
38
39 wrapEmit(span, cursor, true, 'close');
40
41 return true;
42 }
43
44 install(installer: PluginInstaller): void {
45 const plugin = this;

Callers 2

interceptOperationMethod · 0.80

Calls 1

wrapEmitFunction · 0.90

Tested by

no test coverage detected