const collFindOneFunc = function()

in src/plugins/MongoDBPlugin.ts [106:115]


    const collFindOneFunc = function (this: any, operation: string, span: any, args: any[]): boolean {
      // args = [query, options, callback]
      span.tag(
        Tag.dbStatement(
          `${this.s.namespace.collection}.${operation}(${typeof args[0] !== 'function' ? stringify(args[0]) : ''})`,
        ),
      );

      return wrapCallbackWithCursorMaybe(span, args, 0);
    };