GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Restore prometheus metric name mapper tests, fix regressions by jack-berg · Pull Request #6138 · open-telemetry/opentelemetry-java

Conversation

@jack-berg

@jack-berg jack-berg commented Jan 10, 2024

Copy link
Copy Markdown
Member

Addressing post-merge comments on #6015.

Fixing a few things that might qualify as regressions:

  • After Exponential Histogram support to the Prometheus exporter #6015, we don't ensure that the metric name is sanitized after appending the unit. This means that disallowed characters in the unit can cause errors.
  • We stopped converting unit 1 to ratio in the simple case. I.e. we convert 1{foo} to ratio, but 1 result in null. Not sure why but I think that's wrong.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

psx95 reacted with eyes emoji
All reactions
  • 👀 1 reaction
@jack-berg
Restore prometheus metric name mapper tests
048569d
@jack-berg
jack-berg requested a review from a team January 10, 2024 18:33
jack-berg
jack-berg commented Jan 10, 2024
View reviewed changes
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg commented Jan 10, 2024
View reviewed changes
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Jan 10, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d9f9812) 91.01% compared to head (f24e0cb) 91.07%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6138      +/-   ##
============================================
+ Coverage     91.01%   91.07%   +0.06%     
- Complexity     5702     5706       +4     
============================================
  Files           630      630              
  Lines         16710    16711       +1     
  Branches       1656     1657       +1     
============================================
+ Hits          15208    15219      +11     
+ Misses         1047     1039       -8     
+ Partials        455      453       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg commented Jan 10, 2024
View reviewed changes
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg commented Jan 10, 2024
View reviewed changes
Comment thread .../prometheus/src/test/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServerTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jack-berg jack-berg mentioned this pull request Jan 10, 2024
Exponential Histogram support to the Prometheus exporter #6015
Merged
@jack-berg

jack-berg commented Jan 10, 2024

Copy link
Copy Markdown
Member Author

cc @fstab @psx95

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

psx95
psx95 reviewed Jan 11, 2024
View reviewed changes
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

psx95
psx95 reviewed Jan 11, 2024
View reviewed changes
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

psx95
psx95 reviewed Jan 11, 2024
View reviewed changes

@psx95 psx95 left a comment

Copy link
Copy Markdown
Contributor

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 for addressing the post-merge comments, @jack-berg !

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

fstab
fstab reviewed Jan 11, 2024
View reviewed changes
Comment thread ...ers/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusUnitsHelper.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

psx95
psx95 reviewed Jan 11, 2024
View reviewed changes
Comment thread ...metheus/src/test/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverterTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

trask
trask reviewed Jan 11, 2024
View reviewed changes
Comment thread .../prometheus/src/main/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverter.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jack-berg jack-berg changed the title Restore prometheus metric name mapper tests Restore prometheus metric name mapper tests, fix regressions Jan 11, 2024
@jack-berg
Replace repeated '_', update test comments
f24e0cb
trask
trask approved these changes Jan 11, 2024
View reviewed changes
@jack-berg

jack-berg commented Jan 11, 2024

Copy link
Copy Markdown
Member Author

Will merge and include in 1.34.1 patch in a few hours if there are no additional commends from @psx95 or @fstab.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

psx95
psx95 approved these changes Jan 11, 2024
View reviewed changes

@psx95 psx95 left a comment

Copy link
Copy Markdown
Contributor

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.

Looks good now! Thank you for addressing the concerns! 👍🏻

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trask reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@jack-berg
jack-berg merged commit c149072 into open-telemetry:main Jan 11, 2024
github-actions Bot pushed a commit that referenced this pull request Jan 11, 2024
@jack-berg @opentelemetrybot
Restore prometheus metric name mapper tests, fix regressions (#6138)
208989b
@opentelemetrybot opentelemetrybot mentioned this pull request Jan 11, 2024
[release/v1.34.x] Restore prometheus metric name mapper tests, fix regressions #6141
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@trask trask trask approved these changes
@psx95 psx95 psx95 approved these changes
+1 more reviewer
@fstab fstab fstab left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@jack-berg @trask @fstab @psx95
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.