-
Notifications
You must be signed in to change notification settings - Fork 114
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
chore: base support for raising stat per tracking plan event #2847
Conversation
Kudos, SonarCloud Quality Gate passed! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2847 +/- ##
===========================================
- Coverage 84.86% 84.83% -0.03%
===========================================
Files 497 498 +1
Lines 27412 27442 +30
Branches 6597 6603 +6
===========================================
+ Hits 23262 23281 +19
- Misses 3723 3731 +8
- Partials 427 430 +3 ☔ View full report in Codecov by Sentry. |
This PR is considered to be stale. It has been open for 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR. |
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
7db76a1
to
99d0368
Compare
Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/2847/test-report.html |
2 similar comments
Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/2847/test-report.html |
Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/2847/test-report.html |
99d0368
to
9931404
Compare
Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/2847/test-report.html |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
This PR is considered to be stale. It has been open for 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR. |
357291a
to
0e9ada9
Compare
54a4ffb
to
11ccb13
Compare
src/services/trackingPlan.ts
Outdated
for (let i = 0; i < events.length; i++) { | ||
const event = events[i]; | ||
const eventStartTime = new Date(); | ||
for (let event of events) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this line causing an ESLint error, suggesting the use of iterators instead of loops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint has been blocked for the trackingPlan files. I'll change it nonetheless, point has been raised before as well.
src/services/trackingPlan.ts
Outdated
for (let event of events) { | ||
let eventValidationResponse: any; | ||
let exceptionOccured = false; | ||
let eventStartTime = Date.now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let eventStartTime = Date.now(); | |
const eventStartTime = Date.now(); |
11ccb13
to
dbd574d
Compare
Quality Gate failedFailed conditions |
Description of the change
In this change, we have refactored the code to allow for capturing stats per tracking plan event validation. This will allow us to write better fine grained alerts over the tracking plan changes.
DAT-340
https://linear.app/rudderstack/issue/DAT-340/trackingplan-stats-capture-include-state-statuscode-per-event-level
Type of change
Related issues
Checklists
Development
Code review