Skip to content

Commit ab0a906

Browse files
Update dependency io.dropwizard.metrics5:metrics-core to v5.0.1 (#1430)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.dropwizard.metrics5:metrics-core](https://metrics.dropwizard.io) ([source](https://redirect.github.com/dropwizard/metrics)) | `5.0.0` -> `5.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.dropwizard.metrics5:metrics-core/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.dropwizard.metrics5:metrics-core/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.dropwizard.metrics5:metrics-core/5.0.0/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.dropwizard.metrics5:metrics-core/5.0.0/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the warning logs for more information. --- ### Release Notes <details> <summary>dropwizard/metrics (io.dropwizard.metrics5:metrics-core)</summary> ### [`v5.0.1`](https://redirect.github.com/dropwizard/metrics/releases/tag/v5.0.1) [Compare Source](https://redirect.github.com/dropwizard/metrics/compare/v5.0.0...v5.0.1) No changes since https://github.com/dropwizard/metrics/releases/tag/v5.0.0. See [https://github.com/dropwizard/metrics/issues/4839](https://redirect.github.com/dropwizard/metrics/issues/4839) why the new release was necessary. **Full Changelog**: dropwizard/metrics@v5.0.0...v5.0.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/prometheus/client_java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42MC4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Signed-off-by: Gregor Zeitlinger <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <[email protected]>
1 parent fd3d676 commit ab0a906

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/renovate.json5

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
extends: ["config:recommended"],
44
platformCommit: "enabled",
55
automerge: true,
6-
dependencyDashboard: false,
76
ignorePaths: [
87
"**/simpleclient-archive/**", // old projects
98
// agent resources packages an OTel API that is the minimum required API version

prometheus-metrics-instrumentation-dropwizard5/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>io.dropwizard.metrics5</groupId>
3333
<artifactId>metrics-core</artifactId>
34-
<version>5.0.0</version>
34+
<version>5.0.1</version>
3535
<scope>provided</scope>
3636
</dependency>
3737
<!-- Test Dependencies -->

prometheus-metrics-instrumentation-dropwizard5/src/test/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExportsTest.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ public Boolean getValue() {
8181
}
8282
};
8383

84-
metricRegistry.register("double.gauge", doubleGauge);
85-
metricRegistry.register("long.gauge", longGauge);
86-
metricRegistry.register("integer.gauge", integerGauge);
87-
metricRegistry.register("float.gauge", floatGauge);
88-
metricRegistry.register("boolean.gauge", booleanGauge);
84+
metricRegistry.register(MetricName.parse("double.gauge"), doubleGauge);
85+
metricRegistry.register(MetricName.parse("long.gauge"), longGauge);
86+
metricRegistry.register(MetricName.parse("integer.gauge"), integerGauge);
87+
metricRegistry.register(MetricName.parse("float.gauge"), floatGauge);
88+
metricRegistry.register(MetricName.parse("boolean.gauge"), booleanGauge);
8989

9090
String expected =
9191
"""
@@ -114,7 +114,7 @@ public Boolean getValue() {
114114
public void testInvalidGaugeType() {
115115
Gauge<String> invalidGauge = () -> "foobar";
116116

117-
metricRegistry.register("invalid_gauge", invalidGauge);
117+
metricRegistry.register(MetricName.parse("invalid_gauge"), invalidGauge);
118118

119119
String expected = "# EOF\n";
120120
assertThat(convertToOpenMetricsFormat()).isEqualTo(expected);
@@ -123,7 +123,7 @@ public void testInvalidGaugeType() {
123123
@Test
124124
public void testGaugeReturningNullValue() {
125125
Gauge<String> invalidGauge = () -> null;
126-
metricRegistry.register("invalid_gauge", invalidGauge);
126+
metricRegistry.register(MetricName.parse("invalid_gauge"), invalidGauge);
127127
String expected = "# EOF\n";
128128
assertThat(convertToOpenMetricsFormat()).isEqualTo(expected);
129129
}
@@ -251,7 +251,8 @@ public void testThatMetricHelpUsesOriginalDropwizardName() {
251251
metricRegistry.counter("my.application.namedCounter1");
252252
metricRegistry.meter("my.application.namedMeter1");
253253
metricRegistry.histogram("my.application.namedHistogram1");
254-
metricRegistry.register("my.application.namedGauge1", new ExampleDoubleGauge());
254+
metricRegistry.register(
255+
MetricName.parse("my.application.namedGauge1"), new ExampleDoubleGauge());
255256

256257
String expected =
257258
"""

0 commit comments

Comments
 (0)