-
Notifications
You must be signed in to change notification settings - Fork 297
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: avoid sending warehouseID in stats #4667
Conversation
Important Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Tip Early Access Features
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 (
|
a7be112
to
c92aff2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4667 +/- ##
==========================================
+ Coverage 74.52% 74.60% +0.08%
==========================================
Files 416 414 -2
Lines 49269 48546 -723
==========================================
- Hits 36718 36220 -498
+ Misses 10112 9952 -160
+ Partials 2439 2374 -65 ☔ View full report in Codecov by Sentry. |
@@ -348,6 +350,7 @@ func (bcm *BackendConfigManager) persistSSLFileErrorStat( | |||
"module": "warehouse", | |||
"destType": destType, | |||
"warehouseID": misc.GetTagName(destID, sourceName, destName, misc.TailTruncateStr(sourceID, 6)), | |||
"sourceID": sourceID, | |||
"destinationID": destID, |
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.
Looks like destID
is in use in other places.
"destinationID": destID, | |
"destID": destID, |
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.
Yean, I noticed that as well. There are dis-similarities around destID vs destinationID.
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.
I was discussing the same with @lvrach around the mismatch of tags. We thought of following these steps:
- Add additional tags where there are mismatches, like in say in this particular case we will add let's say destID.
- Check operator, if we have alerts or dashboards requires those tags, we can replace them, like in say in this particular case we will replace
destinationID
withdestID
. - Once we have no dependency we will remove it from the code, like in say removing
destinationID
from stat.
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.
LGTM apart from one use of destinationID
instead of destID
for a stat tag.
c92aff2
to
2cd1b60
Compare
As @Sidddddarth mentions, why not use |
7229fe6
to
1c9ca3a
Compare
1c9ca3a
to
9f42e4e
Compare
Description
(sourceName, destinationName, sourceID, destiantionID)
.warehouseID
is utilized,sourceID
anddestID
are ensured to be available. For any instances where these identifiers are absent, they are added.warehouseID
: Once the new tags (sourceID
anddestID
) are consistently populated, the next step involves removingwarehouseID
from the metrics dashboard and alerts. Instead,sourceID
anddestID
will be used for contextual information if necessary. (PIPE-1089)warehouseID
from the application code. (PIPE-1090)This improved version provides clearer explanations and organizes the plan's steps for better readability and understanding.
Linear Ticket
Security