Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[EXPORTER] Export resource for prometheus #2301
[EXPORTER] Export resource for prometheus #2301
Changes from 30 commits
dfefb44
ca3286a
1436368
22b8c94
3b15502
1ffba54
401a8ac
d2e144a
a30ddf7
02f4d04
004a4d4
72ed751
00b0b66
9f01fd4
5d24d88
e50a3d6
88e9857
a0b322b
33d3a47
0ab87c0
fcc397f
23f29cd
765eb99
c476939
3ebe160
422bca2
d0f15f2
bb62f0a
9826f67
db783e2
3517444
dd737e3
b6ca2f2
0149d5c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Not related to this PR, but there is possibility of precision loss while casting from
int64_t
todouble
for larger values ( > 2^52) ofsum
. Good to have a issue to track this (I will create one) - to check for any such loss and log a warning. No changes required in this PR.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.
Thanks, I add this static cast because it will trigger a warning with clang 16 and
-Werror
will make it a error.BTW:Do you think think it may have epsilon problem in the code
metric->histogram.sample_count = static_cast<std::uint64_t>(values[1]);
inPrometheusExporterUtils::SetValue
?