(params: any)
| 67 | }; |
| 68 | |
| 69 | const stringify = (params: any) => { |
| 70 | if (params === undefined) return ''; |
| 71 | else if (typeof params === 'function') return `${params}`; |
| 72 | |
| 73 | let str = JSON.stringify(params); |
| 74 | |
| 75 | if (str.length > agentConfig.mongoParametersMaxLength) |
| 76 | str = str.slice(0, agentConfig.mongoParametersMaxLength) + ' ...'; |
| 77 | |
| 78 | return str; |
| 79 | }; |
| 80 | |
| 81 | const collInsertFunc = function (this: any, operation: string, span: any, args: any[]): boolean { |
| 82 | // args = [doc(s), options, callback] |