|
5 | 5 | /// # Examples
|
6 | 6 | ///
|
7 | 7 | /// ```
|
8 |
| -/// # #[macro_use] extern crate prometheus; |
9 | 8 | /// # use std::collections::HashMap;
|
| 9 | +/// # use prometheus::labels; |
10 | 10 | /// # fn main() {
|
11 | 11 | /// let labels = labels!{
|
12 | 12 | /// "test" => "hello",
|
@@ -41,7 +41,7 @@ macro_rules! labels {
|
41 | 41 | /// # Examples
|
42 | 42 | ///
|
43 | 43 | /// ```
|
44 |
| -/// # #[macro_use] extern crate prometheus; |
| 44 | +/// # use prometheus::{labels, opts}; |
45 | 45 | /// # fn main() {
|
46 | 46 | /// let name = "test_opts";
|
47 | 47 | /// let help = "test opts help";
|
@@ -87,8 +87,8 @@ macro_rules! opts {
|
87 | 87 | /// # Examples
|
88 | 88 | ///
|
89 | 89 | /// ```
|
90 |
| -/// # #[macro_use] extern crate prometheus; |
91 | 90 | /// # use prometheus::linear_buckets;
|
| 91 | +/// # use prometheus::{histogram_opts, labels}; |
92 | 92 | /// # fn main() {
|
93 | 93 | /// let name = "test_histogram_opts";
|
94 | 94 | /// let help = "test opts help";
|
@@ -135,7 +135,7 @@ macro_rules! histogram_opts {
|
135 | 135 | /// # Examples
|
136 | 136 | ///
|
137 | 137 | /// ```
|
138 |
| -/// # #[macro_use] extern crate prometheus; |
| 138 | +/// # use prometheus::{opts, register_counter}; |
139 | 139 | /// # fn main() {
|
140 | 140 | /// let opts = opts!("test_macro_counter_1", "help");
|
141 | 141 | /// let res1 = register_counter!(opts);
|
@@ -189,7 +189,7 @@ macro_rules! __register_counter_vec {
|
189 | 189 | /// # Examples
|
190 | 190 | ///
|
191 | 191 | /// ```
|
192 |
| -/// # #[macro_use] extern crate prometheus; |
| 192 | +/// # use prometheus::{opts, register_counter_vec}; |
193 | 193 | /// # fn main() {
|
194 | 194 | /// let opts = opts!("test_macro_counter_vec_1", "help");
|
195 | 195 | /// let counter_vec = register_counter_vec!(opts, &["a", "b"]);
|
@@ -238,7 +238,7 @@ macro_rules! __register_gauge {
|
238 | 238 | /// # Examples
|
239 | 239 | ///
|
240 | 240 | /// ```
|
241 |
| -/// # #[macro_use] extern crate prometheus; |
| 241 | +/// # use prometheus::{opts, register_gauge}; |
242 | 242 | /// # fn main() {
|
243 | 243 | /// let opts = opts!("test_macro_gauge", "help");
|
244 | 244 | /// let res1 = register_gauge!(opts);
|
@@ -287,7 +287,7 @@ macro_rules! __register_gauge_vec {
|
287 | 287 | /// # Examples
|
288 | 288 | ///
|
289 | 289 | /// ```
|
290 |
| -/// # #[macro_use] extern crate prometheus; |
| 290 | +/// # use prometheus::{opts, register_gauge_vec}; |
291 | 291 | /// # fn main() {
|
292 | 292 | /// let opts = opts!("test_macro_gauge_vec_1", "help");
|
293 | 293 | /// let gauge_vec = register_gauge_vec!(opts, &["a", "b"]);
|
@@ -327,7 +327,7 @@ macro_rules! register_int_gauge_vec {
|
327 | 327 | /// # Examples
|
328 | 328 | ///
|
329 | 329 | /// ```
|
330 |
| -/// # #[macro_use] extern crate prometheus; |
| 330 | +/// # use prometheus::{histogram_opts, register_histogram}; |
331 | 331 | /// # fn main() {
|
332 | 332 | /// let opts = histogram_opts!("test_macro_histogram", "help");
|
333 | 333 | /// let res1 = register_histogram!(opts);
|
@@ -363,7 +363,7 @@ macro_rules! register_histogram {
|
363 | 363 | /// # Examples
|
364 | 364 | ///
|
365 | 365 | /// ```
|
366 |
| -/// # #[macro_use] extern crate prometheus; |
| 366 | +/// # use prometheus::{histogram_opts, register_histogram_vec}; |
367 | 367 | /// # fn main() {
|
368 | 368 | /// let opts = histogram_opts!("test_macro_histogram_vec_1", "help");
|
369 | 369 | /// let histogram_vec = register_histogram_vec!(opts, &["a", "b"]);
|
|
0 commit comments