Skip to content

Commit

Permalink
Merge branch '1.14.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan-ivanov committed Jan 10, 2025
2 parents 9bd23f1 + 521d57d commit 92cb737
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,12 @@ void doesNotCallConventionOnScrape() {
assertThat(convention.tagKeyCount.get()).isEqualTo(expectedTagKeyCount);
}

@Test
void scrapeWhenMeterNameContainsSingleCharacter() {
registry.counter("c").increment();
assertThatNoException().isThrownBy(() -> registry.scrape());
}

private static class CountingPrometheusNamingConvention extends PrometheusNamingConvention {

AtomicInteger nameCount = new AtomicInteger();
Expand Down

0 comments on commit 92cb737

Please sign in to comment.