trace-core: API polish (#962)

This branch makes a handful of `tokio-trace-core` API improvements, mostly
around naming. In particular:

 * Rename `dispatcher::with` to `dispatcher::get_default`
 * Rename `Event::observe` to `Event::dispatch`
 * Make `field::ValidLen` trait private

Closes #948
Closes #960

Signed-off-by: Eliza Weisman <[email protected]>
This commit is contained in:
Eliza Weisman
2019-03-07 15:19:26 -08:00
committed by GitHub
parent 7f911b6b70
commit b01e71b3d8
7 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
extern crate tokio_trace;
use tokio_trace::{
field::{self, Field, Visit},
field::{Field, Visit},
span,
subscriber::{self, Subscriber},
Event, Id, Metadata,