-
Notifications
You must be signed in to change notification settings - Fork 4
659: Add metrics to LeetcodeClientImpl, ThrottledLeetcodeClientImpl and LeetcodeAuthStealer #689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Available PR Commands
See: https://github.com/tahminator/codebloom/wiki/CI-Commands |
Title659: Add metrics to LeetcodeClientImpl, ThrottledLeetcodeClientImpl and LeetcodeAuthStealer PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
A["LeetcodeClientImpl"] -- "@Timed leetcode.client.execution" --> M["Micrometer Metrics"]
B["ThrottledLeetcodeClientImpl"] -- "@Timed leetcode.throttled.client.execution" --> M
C["LeetcodeAuthStealer.stealCookieImpl"] -- "@Timed leetcode.auth.stealer.execution" --> M
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
src/main/java/org/patinanetwork/codebloom/common/leetcode/LeetcodeClientImpl.java
Outdated
Show resolved
Hide resolved
.../java/org/patinanetwork/codebloom/common/leetcode/throttled/ThrottledLeetcodeClientImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/scheduled/auth/LeetcodeAuthStealer.java
Outdated
Show resolved
Hide resolved
83b31f3 to
1918430
Compare
|
/ai |
|
/review |
|
/describe |
|
/improve |
Title659: Add metrics to LeetcodeClientImpl, ThrottledLeetcodeClientImpl and LeetcodeAuthStealer PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
A["LeetcodeClientImpl @Timed(leetcdoe.client.execution)"] -- "base execution timing" --> C["Micrometer metrics"]
B["ThrottledLeetcodeClientImpl @Timed(leetcode.throttled.client.execution)"] -- "throttled execution timing" --> C
D["LeetcodeAuthStealer.stealCookieImpl @Timed(longTask)"] -- "auth flow duration" --> C
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
src/main/java/org/patinanetwork/codebloom/common/leetcode/LeetcodeClientImpl.java
Outdated
Show resolved
Hide resolved
.../java/org/patinanetwork/codebloom/common/leetcode/throttled/ThrottledLeetcodeClientImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/scheduled/auth/LeetcodeAuthStealer.java
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
/deploy |
|
The command to deploy to staging for the commit 1918430 has been triggered. View action run |
|
/deploy |
|
The command to deploy to staging for the commit da0f742 has been triggered. View action run |
|
/deploy |
|
The command to deploy to staging for the commit 876fd45 has been triggered. View action run |
|
/deploy |
1 similar comment
|
/deploy |
|
/review |
|
/describe |
|
/improve |
Title659: Add metrics to LeetcodeClientImpl, ThrottledLeetcodeClientImpl and LeetcodeAuthStealer PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
CustomTimer["CustomTimer (Micrometer timer)"]
LeetcodeClientImpl["LeetcodeClientImpl: wrap calls with timer"]
ThrottledClient["ThrottledLeetcodeClientImpl: pass timer to super"]
AuthStealer["LeetcodeAuthStealer: @Timed long task"]
AuthSuccessHandler["@Timed onAuthenticationSuccess"]
CustomTimer -- "injected" --> LeetcodeClientImpl
LeetcodeClientImpl -- "used by" --> ThrottledClient
AuthStealer -- "timed by" --> CustomTimer
AuthSuccessHandler -- "Micrometer @Timed" --> CustomTimer
|
| Relevant files | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
src/main/java/org/patinanetwork/codebloom/common/timer/CustomTimer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/common/timer/CustomTimer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/common/leetcode/LeetcodeClientImpl.java
Show resolved
Hide resolved
|
/deploy |
|
The command to deploy to staging for the commit 876fd45 has been triggered. View action run |
7d2a36e to
3ab5a15
Compare
|
/deploy |
|
The command to deploy to staging for the commit 3ab5a15 has been triggered. View action run |
|
/deploy |
…nd LeetcodeAuthStealer
|
The command to deploy to staging for the commit cca1c21 has been triggered. View action run |
|
/deploy |
|
The command to deploy to staging for the commit 0da664d has been triggered. View action run |
|
/ai |
|
/review |
|
/describe |
|
/improve |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title659: Add metrics to LeetcodeClientImpl, ThrottledLeetcodeClientImpl and LeetcodeAuthStealer PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
MR["MeterRegistry injected"]
LCI["LeetcodeClientImpl methods timed"]
TLCI["ThrottledLeetcodeClientImpl ctor updated"]
LAS["LeetcodeAuthStealer methods timed"]
CSH["CustomAuthenticationSuccessHandler @Timed"]
MR -- "constructor injection" --> LCI
MR -- "constructor injection" --> TLCI
MR -- "constructor injection" --> LAS
LCI -- "record() around operations" --> "Timers 'leetcode.client.execution'"
LAS -- "record() around auth ops" --> "Timers 'leetcode.client.execution'"
CSH -- "@Timed('controller.execution')" --> "Controller timing"
|
| Relevant files | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Enhancement |
|
Description of changes
Checklist before review
Screenshots
Dev:


Staging:
