-
Notifications
You must be signed in to change notification settings - Fork 63
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
Check Simplemetrics is not empty #474
Conversation
✅ Deploy Preview for agent-public-docs canceled.
|
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #474 +/- ##
=======================================
Coverage 66.29% 66.30%
=======================================
Files 118 118
Lines 13391 13392 +1
=======================================
+ Hits 8877 8879 +2
+ Misses 3924 3922 -2
- Partials 590 591 +1
☔ View full report in Codecov by Sentry. |
src/core/metrics/aggregate.go
Outdated
metricsCollections.Data[dimensionsChecksum].RunningSumMap[simpleMetric.Name] = metrics + simpleMetric.GetValue() | ||
} else { | ||
metricsCollections.Data[dimensionsChecksum].RunningSumMap[simpleMetric.Name] = simpleMetric.GetValue() | ||
if stats.GetSimplemetrics() != nil { |
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.
would it be easier to read if you assign a variable here? and reuse it in the range on the line below?
Proposed changes
Check
stats.Simplemetrics
is not emptyChecklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentmake install-tools
and have attached any dependency changes to this pull requestREADME.md
)