Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Fox Franke cf5691fe2a Migrate to core::futures (#65)
* Migrate to core::futures

This drops all dependencies on the 'futures' crate, and upgrades to
hyper-0.13 and tokio-0.2. Methods that return futures now use
async/await.

Since hyper has removed hyper_run(), I have in turn removed the
HttpExporter::run() method. The user should just call async_run()
and spawn or await the result however they wish.

* Bump CI minimum rust to 1.39 for async/await

Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2020-01-14 23:11:42 -05:00
jean-airoldie e614847de6 core: Recorder -> Observer (#35) 2019-07-17 09:06:45 -04:00
Toby Lawrence ad72bc16c1
core: add Builder trait for recorders (#30)
This change adds a new trait -- `Builder` -- which defines a value that
can create new recorder instances.

As we have a need to generate owned recorders, in particular for
futures-based code, the `Builder` trait provides a way to do so without
any jankiness, such as the prior Clone-based approach.

As such, all exporters now expect a builder to be passed in, rather than
the recorder itself.
2019-07-15 09:35:34 -04:00
Toby Lawrence d459db8084
Add label support + rename crates. (#27) 2019-07-05 21:14:08 -04:00
Toby Lawrence ebe5d9266b Update exporters/recorders to use new metrics-util. 2019-05-29 23:07:14 -04:00
Toby Lawrence 5ff6ec980e
initial import of metrics-exporter-http v0.1.0 2019-05-05 20:42:46 -04:00