-
Notifications
You must be signed in to change notification settings - Fork 828
chore(main): release 1.6.1 #2064
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "1.6.0" | ||
| ".": "1.6.1" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,6 +78,26 @@ Counter eventsTotal2 = Counter.builder() | |
| .register(); // IllegalArgumentException, because a metric with that name is already registered | ||
| ``` | ||
|
|
||
| ## Suffix-Based Name Validation | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added some docs that were forgotten in last release |
||
|
|
||
| Suffix handling happens at scrape time. This makes metric names more flexible while keeping the | ||
| exposed output unambiguous. | ||
|
|
||
| The registry now tracks not only the metric names you register, but also the exposition names they | ||
| would claim in OpenMetrics 1.x and Prometheus text format, such as `_total`, `_count`, `_sum`, | ||
| `_bucket`, `_created`, and `_info`. | ||
|
|
||
| This means names are accepted when they are safe, and combinations are rejected when they would | ||
| collide at scrape time. The table below also shows the pre-1.6.0 behavior for comparison. | ||
|
|
||
| | Example | Before 1.6.0 | Current behavior | Why | | ||
| | --------------------------------------------- | ------------ | ---------------- | ------------------------------------------------------------------------------------------------- | | ||
| | `Gauge("foo_total")` | Rejected | Allowed | Safe because `_total` suffix expansion applies to counters, not gauges. | | ||
| | `Counter("events_total")` | Rejected | Allowed | Safe because the OM1 output is `events_total`; the writer avoids double-appending `_total`. | | ||
| | `Gauge("foo_total")` + `Histogram("foo")` | Rejected | Allowed | Safe because the exposed names do not overlap: `foo_total` vs `foo_bucket`/`foo_count`/`foo_sum`. | | ||
| | `Gauge("events_total")` + `Counter("events")` | Rejected | Rejected | Rejected because both would expose `events_total` in OM1. | | ||
| | `Gauge("foo_count")` + `Histogram("foo")` | Allowed | Rejected | Rejected because both would claim `foo_count` at scrape time. | | ||
|
|
||
| ## Validation at registration only | ||
|
|
||
| Validation of duplicate metric names and label schemas happens at registration time only. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| "go:github.com/gohugoio/hugo" = "v0.160.1" | ||
| "go:github.com/grafana/oats" = "0.6.1" | ||
| java = "temurin-25.0.3+9.0.LTS" | ||
| lychee = "0.24.1" | ||
| lychee = "0.23.0" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that slipped through because of a gap in flint that will be fixed in next release (testing all files in version update) |
||
| node = "24.15.0" | ||
| "npm:renovate" = "43.129.1" | ||
| protoc = "34.1" | ||
|
|
||
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.
I added some docs that were forgotten in last release