Skip to content

Commit 66be8e2

Browse files
authoredJan 16, 2022
*: Rename to prometheus-client (prometheus#32)
- Move repository from https://github.com/mxinden/rust-open-metrics-client to https://github.com/prometheus/client_rust. - Rename crate from `open-metrics-client` to `prometheus-client`. - Rename import paths from `open_metrics_client` to `prometheus_client`. See https://groups.google.com/g/prometheus-developers/c/E67ByGmVQKM for details. Signed-off-by: Max Inden <[email protected]>
1 parent 48015ce commit 66be8e2

File tree

18 files changed

+90
-90
lines changed

18 files changed

+90
-90
lines changed
 

‎CHANGELOG.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
- Implement `Gauge::dec` and `Gauge::dec_by`. See [PR 30].
1717

18-
[PR 28]: https://github.com/mxinden/rust-open-metrics-client/pull/28
19-
[PR 27]: https://github.com/mxinden/rust-open-metrics-client/pull/27
20-
[PR 30]: https://github.com/mxinden/rust-open-metrics-client/pull/30
18+
[PR 28]: https://github.com/prometheus/client_rust/pull/28
19+
[PR 27]: https://github.com/prometheus/client_rust/pull/27
20+
[PR 30]: https://github.com/prometheus/client_rust/pull/30
2121

2222
## [0.13.0] - 2021-11-21
2323

@@ -28,8 +28,8 @@ including a breaking change. See [PR 24] for details._
2828

2929
- Allow family to use constructors that do not coerce to function pointers. See [PR 21].
3030

31-
[PR 21]: https://github.com/mxinden/rust-open-metrics-client/pull/21
32-
[PR 24]: https://github.com/mxinden/rust-open-metrics-client/pull/24
31+
[PR 21]: https://github.com/prometheus/client_rust/pull/21
32+
[PR 24]: https://github.com/prometheus/client_rust/pull/24
3333

3434
## [0.12.0] - 2021-08-07
3535

@@ -42,7 +42,7 @@ including a breaking change. See [PR 24] for details._
4242
- Rename `Registry::sub_registry` to `Registry::sub_registry_with_prefix`. See
4343
[PR 20].
4444

45-
[PR 20]: https://github.com/mxinden/rust-open-metrics-client/pull/20
45+
[PR 20]: https://github.com/prometheus/client_rust/pull/20
4646

4747
## [0.11.2] - 2021-06-09
4848
### Fixed
@@ -56,24 +56,24 @@ including a breaking change. See [PR 24] for details._
5656
### Added
5757
- Add support for OpenMetrics Info metrics (see [PR 18]).
5858

59-
[PR 18]: https://github.com/mxinden/rust-open-metrics-client/pull/18
59+
[PR 18]: https://github.com/prometheus/client_rust/pull/18
6060

6161
## [0.10.1] - 2021-05-31
6262
### Added
6363
- Implement `Encode` for `u32`.
6464

6565
### Fixed
66-
- Update to open-metrics-client-derive-text-encode v0.1.1 which handles keyword
66+
- Update to prometheus-client-derive-text-encode v0.1.1 which handles keyword
6767
identifiers aka raw identifiers
6868

69-
https://github.com/mxinden/rust-open-metrics-client/pull/16
69+
https://github.com/prometheus/client_rust/pull/16
7070

7171
## [0.10.0] - 2021-04-29
7272
### Added
7373
- Added `metrics::histogram::linear_buckets`.
74-
https://github.com/mxinden/rust-open-metrics-client/issues/13
74+
https://github.com/prometheus/client_rust/issues/13
7575

7676
### Changed
7777
- Renamed `metrics::histogram::exponential_series` to
7878
`metrics::histogram::exponential_buckets`.
79-
https://github.com/mxinden/rust-open-metrics-client/issues/13
79+
https://github.com/prometheus/client_rust/issues/13

‎Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
2-
name = "open-metrics-client"
2+
name = "prometheus-client"
33
version = "0.14.0"
44
authors = ["Max Inden <mail@max-inden.de>"]
55
edition = "2018"
66
description = "Open Metrics client library allowing users to natively instrument applications."
77
license = "Apache-2.0 OR MIT"
88
keywords = ["openmetrics", "prometheus", "metrics", "instrumentation", "monitoring"]
9-
repository = "https://github.com/mxinden/rust-open-metrics-client"
10-
homepage = "https://github.com/mxinden/rust-open-metrics-client"
11-
documentation = "https://docs.rs/open-metrics-client"
9+
repository = "https://github.com/prometheus/client_rust"
10+
homepage = "https://github.com/prometheus/client_rust"
11+
documentation = "https://docs.rs/prometheus-client"
1212

1313
[workspace]
1414
members = ["derive-text-encode"]
@@ -17,7 +17,7 @@ members = ["derive-text-encode"]
1717
dtoa = "1.0"
1818
itoa = "1.0"
1919
owning_ref = "0.4"
20-
open-metrics-client-derive-text-encode = { version = "0.1.1", path = "derive-text-encode" }
20+
prometheus-client-derive-text-encode = { version = "0.1.1", path = "derive-text-encode" }
2121

2222
[dev-dependencies]
2323
async-std = { version = "1", features = ["attributes"] }

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Open Metrics Client Library
1+
# Prometheus Rust client library
22

3-
[![Test Status](https://github.com/mxinden/rust-open-metrics-client/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/mxinden/rust-open-metrics-client/actions)
4-
[![Crate](https://img.shields.io/crates/v/open-metrics-client.svg)](https://crates.io/crates/open-metrics-client)
5-
[![API](https://docs.rs/open-metrics-client/badge.svg)](https://docs.rs/open-metrics-client)
3+
[![Test Status](https://github.com/prometheus/client_rust/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/prometheus/client_rust/actions)
4+
[![Crate](https://img.shields.io/crates/v/prometheus-client.svg)](https://crates.io/crates/prometheus-client)
5+
[![API](https://docs.rs/prometheus-client/badge.svg)](https://docs.rs/prometheus-client)
66

77
[Rust](https://github.com/rust-lang/) client library implementation of the [Open
88
Metrics specification](https://github.com/OpenObservability/OpenMetrics). Allows
99
developers to instrument applications and thus enables operators to monitor said
1010
applications with monitoring systems like [Prometheus](https://prometheus.io/).
1111

12-
**Documentation**: https://docs.rs/open-metrics-client/
12+
**Documentation**: https://docs.rs/prometheus-client/
1313

1414
## Goals
1515

‎benches/encoding/text.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Benchmark inspired by https://github.com/tikv/rust-prometheus/blob/ab1ca7285d3463504381a5025ae1951e020d6796/benches/text_encoder.rs
22

33
use criterion::{black_box, criterion_group, criterion_main, Criterion};
4-
use open_metrics_client::encoding::text::{encode, Encode, EncodeMetric};
5-
use open_metrics_client::metrics::counter::Counter;
6-
use open_metrics_client::metrics::family::Family;
7-
use open_metrics_client::metrics::histogram::{exponential_buckets, Histogram};
8-
use open_metrics_client::registry::Registry;
4+
use prometheus_client::encoding::text::{encode, Encode, EncodeMetric};
5+
use prometheus_client::metrics::counter::Counter;
6+
use prometheus_client::metrics::family::Family;
7+
use prometheus_client::metrics::histogram::{exponential_buckets, Histogram};
8+
use prometheus_client::registry::Registry;
99
use std::io::Write;
1010
use std::sync::atomic::AtomicU64;
1111

‎benches/family.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use criterion::{black_box, criterion_group, criterion_main, Criterion};
2-
use open_metrics_client::metrics::counter::Counter;
3-
use open_metrics_client::metrics::family::Family;
2+
use prometheus_client::metrics::counter::Counter;
3+
use prometheus_client::metrics::family::Family;
44

55
pub fn family(c: &mut Criterion) {
66
c.bench_function("counter family with Vec<(String, String)> label set", |b| {

‎derive-text-encode/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
2-
name = "open-metrics-client-derive-text-encode"
2+
name = "prometheus-client-derive-text-encode"
33
version = "0.1.1"
44
authors = ["Max Inden <mail@max-inden.de>"]
55
edition = "2018"
6-
description = "Auxiliary crate to derive text Encode trait from open-metrics-client."
6+
description = "Auxiliary crate to derive text Encode trait from prometheus-client."
77
license = "Apache-2.0 OR MIT"
8-
repository = "https://github.com/mxinden/rust-open-metrics-client"
9-
homepage = "https://github.com/mxinden/rust-open-metrics-client"
10-
documentation = "https://docs.rs/open-metrics-client-derive-text-encode"
8+
repository = "https://github.com/prometheus/client_rust"
9+
homepage = "https://github.com/prometheus/client_rust"
10+
documentation = "https://docs.rs/prometheus-client-derive-text-encode"
1111

1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

@@ -17,7 +17,7 @@ quote = "1"
1717
syn = "1"
1818

1919
[dev-dependencies]
20-
open-metrics-client = { path = "../" }
20+
prometheus-client = { path = "../" }
2121

2222
[lib]
2323
proc-macro = true

‎derive-text-encode/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn derive_encode(input: TokenStream) -> TokenStream {
3131
quote! {
3232
#maybe_comma
3333
writer.write_all(concat!(#ident_string, "=\"").as_bytes())?;
34-
open_metrics_client::encoding::text::Encode::encode(&self.#ident, writer)?;
34+
prometheus_client::encoding::text::Encode::encode(&self.#ident, writer)?;
3535
writer.write_all(b"\"")?;
3636
}
3737
})
@@ -62,7 +62,7 @@ pub fn derive_encode(input: TokenStream) -> TokenStream {
6262
};
6363

6464
let gen = quote! {
65-
impl open_metrics_client::encoding::text::Encode for #name {
65+
impl prometheus_client::encoding::text::Encode for #name {
6666
fn encode(&self, writer: &mut dyn std::io::Write) -> std::result::Result<(), std::io::Error> {
6767
#body
6868

‎derive-text-encode/tests/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use open_metrics_client::encoding::text::{encode, Encode};
2-
use open_metrics_client::metrics::counter::Counter;
3-
use open_metrics_client::metrics::family::Family;
4-
use open_metrics_client::registry::Registry;
1+
use prometheus_client::encoding::text::{encode, Encode};
2+
use prometheus_client::metrics::counter::Counter;
3+
use prometheus_client::metrics::family::Family;
4+
use prometheus_client::registry::Registry;
55

66
#[test]
77
fn basic_flow() {

‎examples/tide.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use open_metrics_client::encoding::text::{encode, Encode};
2-
use open_metrics_client::metrics::counter::Counter;
3-
use open_metrics_client::metrics::family::Family;
4-
use open_metrics_client::registry::Registry;
1+
use prometheus_client::encoding::text::{encode, Encode};
2+
use prometheus_client::metrics::counter::Counter;
3+
use prometheus_client::metrics::family::Family;
4+
use prometheus_client::registry::Registry;
55

66
use std::sync::{Arc, Mutex};
77

‎src/encoding/text.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Open Metrics text format implementation.
22
//!
33
//! ```
4-
//! # use open_metrics_client::encoding::text::encode;
5-
//! # use open_metrics_client::metrics::counter::Counter;
6-
//! # use open_metrics_client::registry::Registry;
4+
//! # use prometheus_client::encoding::text::encode;
5+
//! # use prometheus_client::metrics::counter::Counter;
6+
//! # use prometheus_client::registry::Registry;
77
//! #
88
//! # // Create registry and counter and register the latter with the former.
99
//! # let mut registry = Registry::default();
@@ -38,7 +38,7 @@ use std::collections::HashMap;
3838
use std::io::Write;
3939
use std::ops::Deref;
4040

41-
pub use open_metrics_client_derive_text_encode::*;
41+
pub use prometheus_client_derive_text_encode::*;
4242

4343
pub fn encode<W, M>(writer: &mut W, registry: &Registry<M>) -> Result<(), std::io::Error>
4444
where

‎src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
//! # Examples
1212
//!
1313
//! ```
14-
//! # use open_metrics_client::encoding::text::Encode;
15-
//! # use open_metrics_client::encoding::text::encode;
16-
//! # use open_metrics_client::metrics::counter::{Atomic, Counter};
17-
//! # use open_metrics_client::metrics::family::Family;
18-
//! # use open_metrics_client::registry::Registry;
14+
//! # use prometheus_client::encoding::text::Encode;
15+
//! # use prometheus_client::encoding::text::encode;
16+
//! # use prometheus_client::metrics::counter::{Atomic, Counter};
17+
//! # use prometheus_client::metrics::family::Family;
18+
//! # use prometheus_client::registry::Registry;
1919
//! # use std::io::Write;
2020
//! #
2121
//! // Create a metric registry.
@@ -74,7 +74,7 @@
7474
//! ```
7575
//! See [examples] directory for more.
7676
//!
77-
//! [examples]: https://github.com/mxinden/rust-open-metrics-client/tree/master/examples
77+
//! [examples]: https://github.com/prometheus/client_rust/tree/master/examples
7878
7979
pub mod encoding;
8080
pub mod metrics;

‎src/metrics/counter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::sync::Arc;
2121
/// ## Using [`AtomicU64`] as storage and [`u64`] on the interface
2222
///
2323
/// ```
24-
/// # use open_metrics_client::metrics::counter::Counter;
24+
/// # use prometheus_client::metrics::counter::Counter;
2525
/// let counter: Counter = Counter::default();
2626
/// counter.inc();
2727
/// let _value: u64 = counter.get();
@@ -30,7 +30,7 @@ use std::sync::Arc;
3030
/// ## Using [`AtomicU64`] as storage and [`f64`] on the interface
3131
///
3232
/// ```
33-
/// # use open_metrics_client::metrics::counter::Counter;
33+
/// # use prometheus_client::metrics::counter::Counter;
3434
/// # use std::sync::atomic::AtomicU64;
3535
/// let counter = Counter::<f64, AtomicU64>::default();
3636
/// counter.inc();

‎src/metrics/exemplar.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct Exemplar<S, V> {
2121
/// events and track references to data outside of the metric set.
2222
///
2323
/// ```
24-
/// # use open_metrics_client::metrics::exemplar::CounterWithExemplar;
24+
/// # use prometheus_client::metrics::exemplar::CounterWithExemplar;
2525
/// let counter_with_exemplar = CounterWithExemplar::<Vec<(String, String)>>::default();
2626
/// counter_with_exemplar.inc_by(1, Some(vec![("user_id".to_string(), "42".to_string())]));
2727
/// let _value: (u64, _) = counter_with_exemplar.get();
@@ -104,8 +104,8 @@ type RwLockGuardedCounterWithExemplar<'a, S, N, A> =
104104
/// and track references to data outside of the metric set.
105105
///
106106
/// ```
107-
/// # use open_metrics_client::metrics::exemplar::HistogramWithExemplars;
108-
/// # use open_metrics_client::metrics::histogram::exponential_buckets;
107+
/// # use prometheus_client::metrics::exemplar::HistogramWithExemplars;
108+
/// # use prometheus_client::metrics::histogram::exponential_buckets;
109109
/// let histogram = HistogramWithExemplars::new(exponential_buckets(1.0, 2.0, 10));
110110
/// histogram.observe(4.2, Some(vec![("user_id".to_string(), "42".to_string())]));
111111
/// ```

‎src/metrics/family.rs

+17-17
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ use std::sync::{Arc, RwLock, RwLockReadGuard};
2424
/// ### [`Family`] with `Vec<(String, String)>` for convenience
2525
///
2626
/// ```
27-
/// # use open_metrics_client::encoding::text::encode;
28-
/// # use open_metrics_client::metrics::counter::{Atomic, Counter};
29-
/// # use open_metrics_client::metrics::family::Family;
30-
/// # use open_metrics_client::registry::{Descriptor, Registry};
27+
/// # use prometheus_client::encoding::text::encode;
28+
/// # use prometheus_client::metrics::counter::{Atomic, Counter};
29+
/// # use prometheus_client::metrics::family::Family;
30+
/// # use prometheus_client::registry::{Descriptor, Registry};
3131
/// #
3232
/// # let mut registry = Registry::default();
3333
/// let family = Family::<Vec<(String, String)>, Counter>::default();
@@ -57,11 +57,11 @@ use std::sync::{Arc, RwLock, RwLockReadGuard};
5757
/// [`Encode`](crate::encoding::text::Encode) implementation.
5858
///
5959
/// ```
60-
/// # use open_metrics_client::encoding::text::Encode;
61-
/// # use open_metrics_client::encoding::text::encode;
62-
/// # use open_metrics_client::metrics::counter::{Atomic, Counter};
63-
/// # use open_metrics_client::metrics::family::Family;
64-
/// # use open_metrics_client::registry::{Descriptor, Registry};
60+
/// # use prometheus_client::encoding::text::Encode;
61+
/// # use prometheus_client::encoding::text::encode;
62+
/// # use prometheus_client::metrics::counter::{Atomic, Counter};
63+
/// # use prometheus_client::metrics::family::Family;
64+
/// # use prometheus_client::registry::{Descriptor, Registry};
6565
/// # use std::io::Write;
6666
/// #
6767
/// # let mut registry = Registry::default();
@@ -118,8 +118,8 @@ pub struct Family<S, M, C = fn() -> M> {
118118
/// capture variables.
119119
///
120120
/// ```
121-
/// # use open_metrics_client::metrics::family::{Family, MetricConstructor};
122-
/// # use open_metrics_client::metrics::histogram::Histogram;
121+
/// # use prometheus_client::metrics::family::{Family, MetricConstructor};
122+
/// # use prometheus_client::metrics::histogram::Histogram;
123123
/// struct CustomBuilder {
124124
/// buckets: Vec<f64>,
125125
/// }
@@ -142,8 +142,8 @@ pub trait MetricConstructor<M> {
142142
/// posible to directly provide a closure even if it captures variables.
143143
///
144144
/// ```
145-
/// # use open_metrics_client::metrics::family::{Family};
146-
/// # use open_metrics_client::metrics::histogram::Histogram;
145+
/// # use prometheus_client::metrics::family::{Family};
146+
/// # use prometheus_client::metrics::histogram::Histogram;
147147
/// let custom_buckets = vec![0.0, 10.0, 100.0];
148148
/// let metric = Family::<(), Histogram, _>::new_with_constructor(|| {
149149
/// Histogram::new(custom_buckets.clone().into_iter())
@@ -181,8 +181,8 @@ impl<S: Clone + std::hash::Hash + Eq, M, C> Family<S, M, C> {
181181
/// involved constructors see [`MetricConstructor`].
182182
///
183183
/// ```
184-
/// # use open_metrics_client::metrics::family::Family;
185-
/// # use open_metrics_client::metrics::histogram::{exponential_buckets, Histogram};
184+
/// # use prometheus_client::metrics::family::Family;
185+
/// # use prometheus_client::metrics::histogram::{exponential_buckets, Histogram};
186186
/// Family::<Vec<(String, String)>, Histogram>::new_with_constructor(|| {
187187
/// Histogram::new(exponential_buckets(1.0, 2.0, 10))
188188
/// });
@@ -200,8 +200,8 @@ impl<S: Clone + std::hash::Hash + Eq, M, C: MetricConstructor<M>> Family<S, M, C
200200
/// yet exist.
201201
///
202202
/// ```
203-
/// # use open_metrics_client::metrics::counter::{Atomic, Counter};
204-
/// # use open_metrics_client::metrics::family::Family;
203+
/// # use prometheus_client::metrics::counter::{Atomic, Counter};
204+
/// # use prometheus_client::metrics::family::Family;
205205
/// #
206206
/// let family = Family::<Vec<(String, String)>, Counter>::default();
207207
///

‎src/metrics/gauge.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::sync::Arc;
2121
/// ## Using [`AtomicU64`] as storage and [`u64`] on the interface
2222
///
2323
/// ```
24-
/// # use open_metrics_client::metrics::gauge::Gauge;
24+
/// # use prometheus_client::metrics::gauge::Gauge;
2525
/// let gauge: Gauge = Gauge::default();
2626
/// gauge.set(42u64);
2727
/// let _value: u64 = gauge.get();
@@ -30,7 +30,7 @@ use std::sync::Arc;
3030
/// ## Using [`AtomicU64`] as storage and [`f64`] on the interface
3131
///
3232
/// ```
33-
/// # use open_metrics_client::metrics::gauge::Gauge;
33+
/// # use prometheus_client::metrics::gauge::Gauge;
3434
/// # use std::sync::atomic::AtomicU64;
3535
/// let gauge = Gauge::<f64, AtomicU64>::default();
3636
/// gauge.set(42.0);

‎src/metrics/histogram.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::sync::{Arc, Mutex, MutexGuard};
1010
/// Open Metrics [`Histogram`] to measure distributions of discrete events.
1111
///
1212
/// ```
13-
/// # use open_metrics_client::metrics::histogram::{Histogram, exponential_buckets};
13+
/// # use prometheus_client::metrics::histogram::{Histogram, exponential_buckets};
1414
/// let histogram = Histogram::new(exponential_buckets(1.0, 2.0, 10));
1515
/// histogram.observe(4.2);
1616
/// ```

‎src/metrics/info.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::metrics::{MetricType, TypedMetric};
88
/// change during process lifetime".
99
///
1010
/// ```
11-
/// # use open_metrics_client::metrics::info::Info;
11+
/// # use prometheus_client::metrics::info::Info;
1212
///
1313
/// let _info = Info::new(vec![("os", "GNU/linux")]);
1414
/// ```

‎src/registry.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ use std::ops::Add;
2020
/// users might want to use their custom types.
2121
///
2222
/// ```
23-
/// # use open_metrics_client::encoding::text::{encode, EncodeMetric};
24-
/// # use open_metrics_client::metrics::counter::{Atomic as _, Counter};
25-
/// # use open_metrics_client::metrics::gauge::{Atomic as _, Gauge};
26-
/// # use open_metrics_client::registry::Registry;
23+
/// # use prometheus_client::encoding::text::{encode, EncodeMetric};
24+
/// # use prometheus_client::metrics::counter::{Atomic as _, Counter};
25+
/// # use prometheus_client::metrics::gauge::{Atomic as _, Gauge};
26+
/// # use prometheus_client::registry::Registry;
2727
/// #
2828
/// // Create a metric registry.
2929
/// //
@@ -92,8 +92,8 @@ impl<M> Registry<M> {
9292
/// metric is known.
9393
///
9494
/// ```
95-
/// # use open_metrics_client::metrics::counter::{Atomic as _, Counter};
96-
/// # use open_metrics_client::registry::{Registry, Unit};
95+
/// # use prometheus_client::metrics::counter::{Atomic as _, Counter};
96+
/// # use prometheus_client::registry::{Registry, Unit};
9797
/// #
9898
/// let mut registry: Registry<Counter> = Registry::default();
9999
/// let counter = Counter::default();
@@ -113,8 +113,8 @@ impl<M> Registry<M> {
113113
/// unit to the name manually.
114114
///
115115
/// ```
116-
/// # use open_metrics_client::metrics::counter::{Atomic as _, Counter};
117-
/// # use open_metrics_client::registry::{Registry, Unit};
116+
/// # use prometheus_client::metrics::counter::{Atomic as _, Counter};
117+
/// # use prometheus_client::registry::{Registry, Unit};
118118
/// #
119119
/// let mut registry: Registry<Counter> = Registry::default();
120120
/// let counter = Counter::default();
@@ -172,8 +172,8 @@ impl<M> Registry<M> {
172172
/// subsystem registers.
173173
///
174174
/// ```
175-
/// # use open_metrics_client::metrics::counter::{Atomic as _, Counter};
176-
/// # use open_metrics_client::registry::{Registry, Unit};
175+
/// # use prometheus_client::metrics::counter::{Atomic as _, Counter};
176+
/// # use prometheus_client::registry::{Registry, Unit};
177177
/// #
178178
/// let mut registry: Registry<Counter> = Registry::default();
179179
///

0 commit comments

Comments
 (0)
Please sign in to comment.