Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example in examples/example_push.rs does not compile #431

Open
saleemjaffer opened this issue Jan 20, 2022 · 0 comments
Open

Example in examples/example_push.rs does not compile #431

saleemjaffer opened this issue Jan 20, 2022 · 0 comments

Comments

@saleemjaffer
Copy link

Describe the bug
The code in examples/example_push.rs does not compile

To Reproduce
Run the code in examples/example_push.rs. I ran it using cargo run --features="push"

This is the error I get:

error[E0425]: cannot find function `push_metrics` in crate `prometheus`
  --> src/main.rs:39:21
   |
39 |         prometheus::push_metrics(
   |                     ^^^^^^^^^^^^ not found in `prometheus`

error[E0422]: cannot find struct, variant or union type `BasicAuthentication` in crate `prometheus`
  --> src/main.rs:44:30
   |
44 |             Some(prometheus::BasicAuthentication {
   |                              ^^^^^^^^^^^^^^^^^^^ not found in `prometheus`


Expected behavior
The code should run fine.

System information

  • CPU architecture: 2.6 GHz 6-Core Intel Core i7, MacOS Monterey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant