{"ecosystem":"go","package":"github.com/prometheus/client_golang","from_version":null,"to_version":null,"changes":[{"from_version":"1.23.0","to_version":"1.23.1","change_type":"api","description":"This release is made to be compatible with a backwards incompatible API change\nin prometheus/common v0.66.0. There are no functional changes.","migration_hint":null},{"from_version":"1.21.1","to_version":"1.22.0","change_type":"api","description":"[FEATURE] api: `WithLookbackDelta` and `WithStats` options have been added to API client. #1743","migration_hint":null},{"from_version":"1.21.1","to_version":"1.22.0","change_type":"breaking","description":"[FEATURE] prometheus: Add new CollectorFunc utility #1724","migration_hint":null},{"from_version":"1.21.1","to_version":"1.22.0","change_type":"breaking","description":"[CHANGE] Minimum required Go version is now 1.22 (we also test client_golang against latest go version - 1.24) #1738","migration_hint":null},{"from_version":"1.21.1","to_version":"1.22.0","change_type":"breaking","description":"[CHANGE] :warning: promhttp: Isolate zstd support and klauspost/compress library use to promhttp/zstd package. #1765","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"api","description":"[FEATURE] api: Add ability to invoke `CloseIdleConnections` on api.Client using `api.Client.(CloseIdler).CloseIdleConnections()` casting. #1513","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[CHANGE] Add support for Go 1.23. #1602","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[FEATURE] process_collector: Add support for Darwin systems. #1600 #1616 #1625 #1675 #1715","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[FEATURE] promhttp: Add `promhttp.HandlerOpts.EnableOpenMetricsTextCreatedSamples` option to create OpenMetrics _created lines. Not recommended unless you want to use opt-in Created Timestamp feature. Community works on OpenMetrics 2.0 format that should make those lines obsolete (they increase cardinality significantly). #1408","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[FEATURE] prometheus: Add `NewConstNativeHistogram` function. #1654","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[BUGFIX] gocollector: Fix help message for runtime/metric metrics. #1583","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[BUGFIX] prometheus: Fix `Desc.String()` method for no labels case. #1687","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[ENHANCEMENT] prometheus: Optimize popular `prometheus.BuildFQName` function; now up to 30% faster. #1665","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[ENHANCEMENT] prometheus: Optimize `Inc`, `Add` and `Observe` cumulative metrics; now up to 50% faster under high concurrent contention. #1661","migration_hint":null},{"from_version":"1.20.5","to_version":"1.21.0","change_type":"breaking","description":"[CHANGE] Upgrade prometheus/common to 0.62.0 which changes `model.NameValidationScheme` global variable. #1712","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"behavior","description":"[CHANGE] :warning: Change in `collectors.NewGoCollector` metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back with `GoRuntimeMetricsCollection` option or `GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection` for smooth transition.","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"behavior","description":"[BUGFIX] Fixed the bug that causes generated histogram metric names to end with `_total`. ⚠️ This changes 3 metric names in the new Go collector that was reverted from default in this release.","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"breaking","description":"[CHANGE] Added `collectors.WithGoCollections` that allows to choose what collection of Go runtime metrics user wants: Equivalent of [`MemStats` structure](https://pkg.go.dev/runtime#MemStats) configured using `GoRuntimeMemStatsCollection`, new based on dedicated [runtime/metrics](https://pkg.go.dev/runtime/metrics) metrics represented by `GoRuntimeMetricsCollection` option, or both by specifying `GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection` flag. #1031","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"breaking","description":"`go_gc_heap_allocs_by_size_bytes_total` -> `go_gc_heap_allocs_by_size_bytes`,","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"breaking","description":"`go_gc_heap_frees_by_size_bytes_total` -> `go_gc_heap_allocs_by_size_bytes`","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"breaking","description":"`go_gc_pauses_seconds_total` -> `go_gc_pauses_seconds`.","migration_hint":null},{"from_version":"1.12.1","to_version":"1.12.2","change_type":"removed","description":"[CHANCE] Removed `-Inf` buckets from new Go Collector histograms.","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"api","description":"[CHANGE] API client: Pass warnings through on non-error responses. #599","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"api","description":"[CHANGE] API client: Add warnings to `Series` call. #603","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"api","description":"[FEATURE] API client: Add `/labels` call. #604","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"breaking","description":"[BUGFIX] Make `AlreadyRegisteredError` usable for wrapped registries. #607","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"breaking","description":"[FEATURE] Make process collector work on Microsoft Windows. **EXPERIMENTAL** #596","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"removed","description":"[CHANGE] Remove objectives from the default `Summary`. (Objectives have to be set explicitly in the `SummaryOpts`.) #600","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"removed","description":"[CHANGE] Remove all HTTP related feature in the `prometheus` package. (Use the `promhttp` package instead.)  #600","migration_hint":null},{"from_version":"0.9.4","to_version":"1.0.0","change_type":"removed","description":"[CHANGE] Remove `push.FromGatherer`, `push.AddFromGatherer`, `push.Collectors`. (Use `push.New` instead.) #600","migration_hint":null}],"total":30,"note":"Curated major-version breaking changes. Always verify against the package's official changelog before migrating.","_cache":"miss"}