Simplify Collectortrait by enabling Collector::collect to encode metrics directly with a DescriptorEncoder.
See PR 149 for details.
[0.21.2]
Added
Added sub_registry_with_labels method to Registry.
See PR 145.
Added with_labels and with_prefix_and_labels constructors to Registry.
See PR 147.
[0.21.1]
Added
Implement EncodeLabelValue for Option<T>.
See PR 137.
[0.21.0]
Changed
Replace impl EncodeMetric for RefCell<T> with a new type ConstFamily implementing EncodeMetric.
[0.20.0]
Added
Introduce Collector abstraction allowing users to provide additional metrics
and their description on each scrape. See [PR 82].
Introduce a #[prometheus(flatten)] attribute which can be used when deriving EncodeLabelSet, allowing
a nested struct to be flattened during encoding. See [PR 118].
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on prometheus-client to permit the latest version.
Release notes
Sourced from prometheus-client's releases.
Changelog
Sourced from prometheus-client's changelog.
... (truncated)
Commits
057fbaa
chore: prepare v0.22.0 (#171)9d4ba09
chore(derive): update syn from 1 to 2 (#156)5dd49ce
refactor(collector): have Registry:encode do the encoding (#149)97d8de8
feat(registry): addwith_prefix_and_labels
constructor (#147)6c3c2f0
feat(registry): addsub_registry_with_labels
(#145)9c56d67
build(deps): update pyo3 requirement from 0.18 to 0.19 (#148)d001ba0
build(deps): update criterion requirement from 0.4 to 0.5 (#142)319de9b
feat(encoding): implementEncodeLabelValue
forOption
(#141)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show