Conversation
Codecov Report
@@ Coverage Diff @@
## main #914 +/- ##
==========================================
+ Coverage 44.05% 44.97% +0.91%
==========================================
Files 334 330 -4
Lines 39790 39510 -280
==========================================
+ Hits 17528 17768 +240
+ Misses 20737 20193 -544
- Partials 1525 1549 +24
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Jiri Ctvrtka seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
|
||
| // makeBuckets uses current state of pg_stat_monitor table and accumulated previous state | ||
| // to make metrics buckets. | ||
| func (m *PGStatMonitorQAN) makeBuckets(current, cache map[time.Time]map[string]*pgStatMonitorExtended) []*agentpb.MetricsBucket { |
There was a problem hiding this comment.
🚫 [golangci-lint] reported by reviewdog 🐶
cognitive complexity 38 of func (*PGStatMonitorQAN).makeBuckets is high (> 30) (gocognit)
| return buckets, nil | ||
| } | ||
|
|
||
| func (m *PGStatMonitorQAN) checkErrorsView(ctx context.Context) error { |
There was a problem hiding this comment.
🚫 [golangci-lint] reported by reviewdog 🐶
calculated cyclomatic complexity for function checkErrorsView is 12, max is 10 (cyclop)
PMM-9875
Original PR: percona/pmm-agent#370
Build: SUBMODULES-0