Example with statsd not compiling
boskiv opened this issue · 4 comments
boskiv commented
https://github.com/fralalonde/dipstick/blob/master/examples/statsd_nosampling.rs
error[E0599]: no function or associated item named `send_to` found for type `dipstick::Statsd` in the current scope
--> src/main.rs:10:9
|
10 | Statsd::send_to("localhost:8125")
| ^^^^^^^^^^^^^^^ function or associated item not found in `dipstick::Statsd`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: Could not compile `metrics`.
To learn more, run the command again with --verbose.
Process finished with exit code 101
fralalonde commented
Acknowledged. I will try to reproduce and fix this.
fralalonde commented
I could not reproduce the issue using a checkout of the master
branch dating from November 26th 2018 not does it manifest using the latest version.
> cargo run --example statsd_nosampling 1198 xx:07:36
Compiling dipstick v0.7.0 (/dipstick)
Finished dev [unoptimized + debuginfo] target(s) in xxx s
Running `target/debug/examples/statsd_nosampling`
fralalonde commented
I am running rustc 1.31.0 (abe02cefd 2018-12-04)
.
Can you tell me on what git commit id the issue was occuring? You may also try pull the latest version of master as I've fixed a few things, gearing for the next major release (v0.7) of the crate.
boskiv commented
Check it again with cargo 1.33.0-nightly (2cf1f5dda 2018-12-11). It works.