nokia / fluent-plugin-brevity-control

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Brevity Control drop message delayed #5

Open aarunkushwahaa opened 4 years ago

aarunkushwahaa commented 4 years ago

Brevity control message is displayed when second time similar brevity condition occurs. Let me clear it. Say,

num=2 interval = 15

First trial: you send 25 events within 15 seconds. Brevity drops 23 events and allows 2 to pass which is correct but it doesn't log the brevity message for dropping 23 events.

Second trial: when same 15 (any number) events which were filtered during first trial are passed to brevity section then it allows to pass 2 events but doesn't log the brevity message for dropping 13 events. During second trial, brevity displays/logs the brevity drop message of first trial. That is, brevity says "brevity dropped 23 messages"

I think it should be fixed to display brevity message after 'interval' timeframe ends. That is, in above case, after end of 15 seconds