[feat] log with rate limit#821
Merged
mag1c-h merged 1 commit intoModelEngine-Group:developfrom Mar 30, 2026
Merged
Conversation
19ce951 to
5a04c8f
Compare
Wwwzff
reviewed
Mar 17, 2026
Wwwzff
reviewed
Mar 17, 2026
baee6c6 to
2cb6342
Compare
mag1c-h
reviewed
Mar 18, 2026
mag1c-h
reviewed
Mar 18, 2026
8ae429e to
50bb6b7
Compare
qyh111
previously approved these changes
Mar 19, 2026
mag1c-h
reviewed
Mar 19, 2026
6a5d4e0 to
9026009
Compare
Wwwzff
reviewed
Mar 20, 2026
1619a87 to
18f8f06
Compare
Wwwzff
reviewed
Mar 23, 2026
9b8abdc to
858f1ee
Compare
Wwwzff
reviewed
Mar 23, 2026
Wwwzff
reviewed
Mar 23, 2026
858f1ee to
19c292d
Compare
mag1c-h
reviewed
Mar 24, 2026
40871c0 to
e9b1b50
Compare
mag1c-h
reviewed
Mar 25, 2026
a93e557 to
eb7eaa1
Compare
mag1c-h
approved these changes
Mar 27, 2026
Wwwzff
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
to implement a rate limit logger that suppress duplicate messages in a short time
Modifications
add a rate limit filter to the self-defined spdlog sink
Test
Usage of rate limit interface on python side
will print when last log time has reached its time to live which set to 10s in testing and 60s on production
Usage of rate limit interface on CPP side
performance test
We run two performance tests on comparing the latency of duplicate filtering log interface and the plain log interface, by logging same messages / randomly generated message 2000 times.
