ADFA-2951: [Computer vision] Skip Analytics event on Debug mode#989
ADFA-2951: [Computer vision] Skip Analytics event on Debug mode#989Daniel-ADFA merged 1 commit intostagefrom
Conversation
📝 Walkthrough
Risks / best practices:
WalkthroughThis PR introduces a debug mode guard in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cv-image-to-xml/src/main/java/org/appdevforall/codeonthego/computervision/utils/CvAnalyticsUtils.kt (1)
29-31: IncludeeventNamein the skip log for easier Logcat filtering.The current message gives no indication of which event was suppressed. Including the event name makes it straightforward to confirm specific tracking calls are being hit during development.
♻️ Proposed improvement
- if (BuildConfig.DEBUG) { - Log.i(TAG, "skipping analytics event on Debug build") - return - } + if (BuildConfig.DEBUG) { + Log.i(TAG, "Skipping analytics event '$eventName' on debug build") + return + }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@cv-image-to-xml/src/main/java/org/appdevforall/codeonthego/computervision/utils/CvAnalyticsUtils.kt` around lines 29 - 31, The debug skip log in CvAnalyticsUtils.kt currently logs "skipping analytics event on Debug build" without identifying which event; update the Log.i call inside the if (BuildConfig.DEBUG) block to include the eventName variable (e.g., Log.i(TAG, "skipping analytics event on Debug build: " + eventName)) so you can filter by event in Logcat; ensure you reference the existing TAG and eventName symbols used in the surrounding analytics method.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@cv-image-to-xml/src/main/java/org/appdevforall/codeonthego/computervision/utils/CvAnalyticsUtils.kt`:
- Around line 29-31: The debug skip log in CvAnalyticsUtils.kt currently logs
"skipping analytics event on Debug build" without identifying which event;
update the Log.i call inside the if (BuildConfig.DEBUG) block to include the
eventName variable (e.g., Log.i(TAG, "skipping analytics event on Debug build: "
+ eventName)) so you can filter by event in Logcat; ensure you reference the
existing TAG and eventName symbols used in the surrounding analytics method.
No description provided.