unstale

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 init

@unstale/cli on npm

prometheus-client 0.2610 changes

Breaking changes 2

  • A precedence fix prevents exemplars from being allowed on any metric type.

    0.26.0release notes

  • Float exponents greater than or equal to 10 no longer include a leading zero.

    0.26.0release notes

New APIs and options 2

  • TLS version parameters are added to start_wsgi_server.

    0.26.0release notes

  • The Timer context manager exposes its measured duration, so callers can access the elapsed time.

    0.26.0release notes

Fixes and other changes 6

  • Calling clear() on a label-less metric is now a no-op.

    0.26.0release notes

  • Enum arguments are validated before the collector is registered.

    0.26.0release notes

  • Duplicate timeseries now use a specific exception.

    0.26.0release notes

  • The labels() parameters use object instead of Any in their type annotations.

    0.26.0release notes

  • The native histogram sum is parsed as a float.

    0.26.0release notes

  • Unregistering removes nameless collectors from the registry.

    0.26.0release notes

prometheus-client 0.252 changes

Fixes and other changes 2

  • Spaces in grouping key values are handled correctly when using push_to_gateway.

    0.25.0release notes

  • RestrictedRegistry supports MultiProcessCollector.

    0.25.0release notes

prometheus-client 0.241 changes

Fixes and other changes 1

  • Django now passes the correct registry to MultiProcessCollector.

    0.24.1release notes