You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[+] switch to json-iterator/go from encoding/json (#776)
Replaced standard "encoding/json" with "github.com/json-iterator/go"
to improve serialization/deserialization speed and reduce memory
allocations.
This change is expected to lower CPU usage and heap pressure in
high-throughput scenarios. Behavior remains compatible with the standard
library.
Copy file name to clipboardExpand all lines: internal/sinks/cmdopts.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ import "time"
5
5
// CmdOpts specifies the storage configuration to store metrics measurements
6
6
typeCmdOptsstruct {
7
7
Sinks []string`long:"sink" mapstructure:"sink" description:"URI where metrics will be stored, can be used multiple times" env:"PW_SINK"`
8
-
BatchingDelay time.Duration`long:"batching-delay" mapstructure:"batching-delay" description:"Max milliseconds to wait for a batched metrics flush" default:"250ms" env:"PW_BATCHING_DELAY"`
8
+
BatchingDelay time.Duration`long:"batching-delay" mapstructure:"batching-delay" description:"Timeout to wait for a batched metrics flush" default:"950ms" env:"PW_BATCHING_DELAY"`
9
9
Retentionint`long:"retention" mapstructure:"retention" description:"If set, metrics older than that will be deleted" default:"14" env:"PW_RETENTION"`
10
10
RealDbnameFieldstring`long:"real-dbname-field" mapstructure:"real-dbname-field" description:"Tag key for real database name" env:"PW_REAL_DBNAME_FIELD" default:"real_dbname"`
11
11
SystemIdentifierFieldstring`long:"system-identifier-field" mapstructure:"system-identifier-field" description:"Tag key for system identifier value" env:"PW_SYSTEM_IDENTIFIER_FIELD" default:"sys_id"`
0 commit comments