Skip to content
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

fix(dm): updated the stats definition for the tracking plan service #2658

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

abhimanyubabbar
Copy link
Contributor

@abhimanyubabbar abhimanyubabbar commented Sep 26, 2023

Description of the change

As part of this hotfix, we are fixing the definition of couple of critical stats for tracking plan in the prometheus.js file to align with the stat fired from the service. The consequence of the issue is that we have critical P0 alerts which are not getting fired for the DM team.

Ticket: https://linear.app/rudderstack/issue/DAT-404/hotfix-for-the-user-transformer-service

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@@ -614,18 +614,6 @@ class Prometheus {
'k8_namespace',
],
},
{
name: 'user_transform_function_latency',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stats.timing('user_transform_function_latency', userFuncStartTime, {
this is referred here so it might cause issue if someone is using legacy routes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's legacy router and not used anymore. We plan to remove this file eventually.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about vpc customers? may be we won't support UTs for vpc customers right?

Jayachand
Jayachand previously approved these changes Sep 26, 2023
sanpj2292
sanpj2292 previously approved these changes Sep 26, 2023
@abhimanyubabbar abhimanyubabbar marked this pull request as draft September 26, 2023 06:44
@mihir-4116 mihir-4116 dismissed stale reviews from sanpj2292 and Jayachand via 84083aa September 26, 2023 06:54
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (2778ed7) 86.89% compared to head (84083aa) 86.89%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2658   +/-   ##
=======================================
  Coverage   86.89%   86.89%           
=======================================
  Files         604      604           
  Lines       28117    28117           
  Branches     6694     6694           
=======================================
  Hits        24431    24431           
  Misses       3353     3353           
  Partials      333      333           
Files Coverage Δ
src/util/prometheus.js 7.07% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ItsSudip ItsSudip merged commit 84083aa into main Sep 26, 2023
19 checks passed
@mihir-4116 mihir-4116 deleted the hotfix/ut-stats branch December 14, 2023 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants