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

Method stringify

src/plugins/MongoDBPlugin.ts:69–79  ·  view source on GitHub ↗
(params: any)

Source from the content-addressed store, hash-verified

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]

Callers 9

installMethod · 0.80
LambdaMethod · 0.80
installMethod · 0.80
installMethod · 0.80
server.tsFile · 0.80
server.tsFile · 0.80
server.tsFile · 0.80
client.tsFile · 0.80
server.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected