-
Notifications
You must be signed in to change notification settings - Fork 417
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
Prometheus unit test #1461
Prometheus unit test #1461
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1461 +/- ##
==========================================
+ Coverage 84.61% 84.68% +0.07%
==========================================
Files 155 155
Lines 4782 4782
==========================================
+ Hits 4046 4049 +3
+ Misses 736 733 -3
|
ASSERT_EQ(res, code); | ||
} | ||
|
||
#endif // ENABLE_METRICS_PREVIEW |
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.
nit: put the condition here in front of ENABLE_METRICS_PREVIEW? To imply that the previous block is in effect when ENABLE_METRICS_PREVIEW is not defined.
break; | ||
} | ||
case prometheus::MetricType::Untyped: | ||
break; |
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.
Put an ASSERT here as well to catch unexpected type?
Looks like merging #1454 is failing this PR, as the otlp PR adds AggregationTemporality as part of MetricData :( |
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 :)
Fixes #1349 (issue)
Changes
Adds unit test for Prometheus.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes