Repository navigation
chore: update fetch stats - #4539
Conversation
Summary by CodeRabbit
WalkthroughThis update enhances fetch timing instrumentation and success/failure tagging in the asynchronous fetch functions within Changes
Sequence Diagram(s)sequenceDiagram
participant VMContext as Isolated VM Context
participant Fetch as Fetch Function
participant Stats as Timing Logger
VMContext->>Fetch: Call _fetch/_fetchV2/_geolocation with trTags
Fetch->>Fetch: Record startTime
Fetch->>Fetch: Copy trTags to localTags
alt Success
Fetch->>Fetch: localTags.isSuccess = true (string or boolean)
else Failure
Fetch->>Fetch: localTags.isSuccess = false (string or boolean)
end
Fetch->>Stats: stats.timing('fetch', duration, localTags)
Fetch-->>VMContext: Return result or throw error
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Suggestions for improvement: Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📥 CommitsReviewing files that changed from the base of the PR and between 54873c2a02ff13d808b7a0c69022066cd795a8d6 and 887c6bf. 📒 Files selected for processing (7)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4539 +/- ##
===========================================
+ Coverage 91.57% 91.63% +0.05%
===========================================
Files 639 643 +4
Lines 33786 34020 +234
Branches 7988 8048 +60
===========================================
+ Hits 30940 31174 +234
Misses 2588 2588
Partials 258 258 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9c248f9 to
6aba009
Compare
|
Allure Test reports for this run are available at:
|
6aba009 to
5993297
Compare
|
Allure Test reports for this run are available at:
|
5993297 to
57a0f74
Compare
|
Allure Test reports for this run are available at:
|
57a0f74 to
7d6167c
Compare
|
Allure Test reports for this run are available at:
|
7d6167c to
8db8f45
Compare
|
Allure Test reports for this run are available at:
|
8db8f45 to
1167752
Compare
|
Allure Test reports for this run are available at:
|
1167752 to
fa3f1e4
Compare
|
Allure Test reports for this run are available at:
|
b4d2c26 to
f6e8c1f
Compare
|
Allure Test reports for this run are available at:
|
f6e8c1f to
963db65
Compare
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
2ac747a to
e7110be
Compare
|
Allure Test reports for this run are available at:
|
e7110be to
f741119
Compare
|
Allure Test reports for this run are available at:
|
54873c2 to
cca3773
Compare
|
Allure Test reports for this run are available at:
|
|



What are the changes introduced in this PR?
Currently there are no stats fetch stats emitted when we encounter an error in the ivm library. This PR attempts to send a stat for the fetch call irrespective of a success or a failure
What is the related Linear task?
Resolves PIPE-2268
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.