Skip to content

Conversation

@ishleenk17
Copy link
Member

Closes: #36

@ishleenk17 ishleenk17 requested a review from lahsivjar July 4, 2024 07:28
@ishleenk17 ishleenk17 self-assigned this Jul 4, 2024
@ishleenk17 ishleenk17 requested a review from a team as a code owner July 4, 2024 07:28
Co-authored-by: Vishal Raj <vishal.raj@elastic.co>
@ishleenk17 ishleenk17 merged commit 6d438c0 into elastic:main Jul 4, 2024
for _, metric := range metrics {

//The translated metric should not be generated for a null or negative value
if (metric.IntValue != nil && *metric.IntValue <= 0) || (metric.DoubleValue != nil && (*metric.DoubleValue <= 0 || math.IsInf(*metric.DoubleValue, 0))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ishleenk17 QQ: Can zero be a valid value in some cases? I wonder if we should keep the symbol <

lahsivjar added a commit to lahsivjar/opentelemetry-lib that referenced this pull request Jul 4, 2024
ishleenk17 pushed a commit that referenced this pull request Jul 4, 2024
* Revert #37 and add validation check for metric

* Add check for sum and gauge metric type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid timestamp documents get generated

2 participants