We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c6a8a commit c7a87e9Copy full SHA for c7a87e9
src/metrics/listener.ts
@@ -78,7 +78,8 @@ export class MetricsListener {
78
logDebug(`Using StatsD client`);
79
80
this.globalTags = this.getGlobalTags(context);
81
- this.statsDClient = new StatsD({ host: "127.0.0.1", closingFlushInterval: 1 });
+ // About 200 chars per metric, so 8KB buffer size holds approx 40 metrics per request
82
+ this.statsDClient = new StatsD({ host: "127.0.0.1", closingFlushInterval: 1, maxBufferSize: 8192 });
83
return;
84
}
85
if (this.config.logForwarding) {
0 commit comments