Configure logger sampling policy #147

Closed
opened 2024-09-26 08:24:47 +00:00 by pogpp · 1 comment
Member

Is your feature request related to a problem? Please describe.
Currently we use default sampling parameter (see zap.NewProductionConfig) that refers to

// Sampling is enabled at 100:100 by default,
// meaning that after the first 100 log entries
// with the same level and message in the same second,
// it will log every 100th entry
// with the same level and message in the same second.

It would be nice to be able to configure these parameters

Describe the solution you'd like
Add new config params to tune sampling parameters

Describe alternatives you've considered
Don't change anything

Additional context
No

Is your feature request related to a problem? Please describe. Currently we use default sampling parameter (see zap.NewProductionConfig) that refers to // Sampling is enabled at 100:100 by default, // meaning that after the first 100 log entries // with the same level and message in the same second, // it will log every 100th entry // with the same level and message in the same second. It would be nice to be able to configure these parameters Describe the solution you'd like Add new config params to tune sampling parameters Describe alternatives you've considered Don't change anything Additional context No
pogpp self-assigned this 2024-09-26 08:24:47 +00:00
Owner

Done in #149

Done in https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/pulls/149
alexvanin added this to the v0.31.0 milestone 2024-11-20 07:51:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#147
No description provided.