Skip to content
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

Correct NaN String in the Prometheus Exporter #3477

Merged

Conversation

JacksonWeber
Copy link
Contributor

@JacksonWeber JacksonWeber commented Dec 7, 2022

Which problem is this PR solving?

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes (issue): #3465

Short description of the changes

Corrects the string used for NaN in the PrometheusSerializer from 'Nan' to 'NaN'.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@JacksonWeber JacksonWeber requested a review from a team December 7, 2022 17:38
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 7, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@hectorhdzg
Copy link
Member

@JacksonWeber you need to update failing test case as well

@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #3477 (e10694e) into main (e3a81d2) will not change coverage.
The diff coverage is 100.00%.

❗ Current head e10694e differs from pull request most recent head 5adce91. Consider uploading reports for the commit 5adce91 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3477   +/-   ##
=======================================
  Coverage   93.76%   93.76%           
=======================================
  Files         248      248           
  Lines        7567     7567           
  Branches     1580     1580           
=======================================
  Hits         7095     7095           
  Misses        472      472           
Impacted Files Coverage Δ
...ry-exporter-prometheus/src/PrometheusSerializer.ts 95.71% <100.00%> (ø)

Copy link
Member

@hectorhdzg hectorhdzg left a comment

Choose a reason for hiding this comment

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

LGTM

@legendecas
Copy link
Member

#3477 (comment)

CLA needs to be signed before we can land this PR.

@legendecas
Copy link
Member

Thank you for working on this!

A changelog entry at https://github.com/open-telemetry/opentelemetry-js/blob/main/experimental/CHANGELOG.md#bug-bug-fix needs to be added.

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.

4 participants