-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Boltdb shipper metrics changes #2790
Boltdb shipper metrics changes #2790
Conversation
@@ -163,10 +163,20 @@ func (tm *TableManager) getOrCreateTable(spanCtx context.Context, tableName stri | |||
return table | |||
} | |||
|
|||
func (tm *TableManager) syncTables(ctx context.Context) error { | |||
func (tm *TableManager) syncTables(ctx context.Context) (err error) { |
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 prefer the other style of not defining the variable name in the method.
This is usually how we do it and I like that return nil
at the end is a little more explicit.
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.
one nit but LGTM
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
Codecov Report
@@ Coverage Diff @@
## master #2790 +/- ##
==========================================
- Coverage 61.35% 61.30% -0.05%
==========================================
Files 177 177
Lines 14378 14387 +9
==========================================
- Hits 8821 8820 -1
- Misses 4748 4755 +7
- Partials 809 812 +3
|
What this PR does / why we need it:
table
in their names instead offiles
.tables_sync_operation_total
metric during periodic sync operations to be able to detect problems and write alerts on it.