All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added support for the OpenMetrics protobuf format. See PR 83.
- Move
Encode
trait fromprometheus_client::encoding::text
toprometheus_client::encoding
. See PR 83.
-
Use
parking_lot
instead ofstd::sync::*
.Before
proemtheus-client
would use theowning_ref
crate to map the target of astd::sync::RwLockReadGuard
.owning_ref
has multiple unsoundness issues, see https://rustsec.org/advisories/RUSTSEC-2022-0040.html. Instead of replacingowning_ref
with a similar crate, we switch to locking viaparking_lot
which supports the above mapping natively.
- Updates to Rust 2021 Edition. See PR 65.
- Added a
with_prefix
method toRegistry
to allow initializing a registry with a prefix. See PR 70. - Added
Debug
implementations on most public types that were missing them. See PR 71. - Added example for actix-web framework. See PR 76.
- Remove
Add
trait implementation for a private type which lead to compile time conflicts with existingAdd
implementations e.g. onString
. See PR 69.
- Require
Registry
default generic typeSendEncodeMetric
to beSync
. See PR 58.
- Expose
Encoder
methods. See PR 41.
- Use
AtomicU32
on platforms that don't supportAtomicU64
. See PR 42.
- Release as
prometheus-client
andprometheus-client-derive-text-encode
.
- Implement
Gauge::dec
andGauge::dec_by
. See PR 30.
Note: This was initially released as v0.12.1
but later on yanked due to it
including a breaking change. See PR 24 for details.
- Allow family to use constructors that do not coerce to function pointers. See PR 21.
- Add
Registry::sub_registry_with_label
. See PR 20.
- Rename
Registry::sub_registry
toRegistry::sub_registry_with_prefix
. See PR 20.
- Do not separate labels with spaces.
- Encode Info metric labels.
- Add support for OpenMetrics Info metrics (see PR 18).
- Implement
Encode
foru32
.
-
Update to prometheus-client-derive-text-encode v0.1.1 which handles keyword identifiers aka raw identifiers
- Added
metrics::histogram::linear_buckets
. prometheus#13
- Renamed
metrics::histogram::exponential_series
tometrics::histogram::exponential_buckets
. prometheus#13