pypi / prometheus-client
prometheus-client
What changed in prometheus-client 0.24 to 0.26, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
2 breaking2 new APIs and options9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprometheus-client 0.2610 changes
Breaking changes 2
A precedence fix prevents exemplars from being allowed on any metric type.
Float exponents greater than or equal to 10 no longer include a leading zero.
New APIs and options 2
TLS version parameters are added to start_wsgi_server.
The Timer context manager exposes its measured duration, so callers can access the elapsed time.
Fixes and other changes 6
Calling clear() on a label-less metric is now a no-op.
Enum arguments are validated before the collector is registered.
Duplicate timeseries now use a specific exception.
The labels() parameters use object instead of Any in their type annotations.
The native histogram sum is parsed as a float.
Unregistering removes nameless collectors from the registry.
prometheus-client 0.252 changes
Fixes and other changes 2
Spaces in grouping key values are handled correctly when using push_to_gateway.
RestrictedRegistry supports MultiProcessCollector.
prometheus-client 0.241 changes
Fixes and other changes 1
Django now passes the correct registry to MultiProcessCollector.