diff --git a/tokio-trace/benches/subscriber.rs b/tokio-trace/benches/subscriber.rs
index cad014410a2..321dc6892c1 100644
--- a/tokio-trace/benches/subscriber.rs
+++ b/tokio-trace/benches/subscriber.rs
@@ -12,12 +12,12 @@ use tokio_trace::{field, span, Id, Metadata};
struct EnabledSubscriber;
impl tokio_trace::Subscriber for EnabledSubscriber {
- fn new_id(&self, span: span::Attributes) -> Id {
+ fn new_span(&self, span: &Metadata) -> Id {
let _ = span;
Id::from_u64(0)
}
- fn record_fmt(&self, span: &Id, field: &field::Field, value: ::std::fmt::Arguments) {
+ fn record_debug(&self, span: &Id, field: &field::Field, value: &::std::fmt::Debug) {
let _ = (span, field, value);
}
@@ -30,34 +30,26 @@ impl tokio_trace::Subscriber for EnabledSubscriber {
true
}
- fn enter(&self, span: Id) {
+ fn enter(&self, span: &Id) {
let _ = span;
}
- fn exit(&self, span: Id) {
- let _ = span;
- }
-
- fn close(&self, span: Id) {
+ fn exit(&self, span: &Id) {
let _ = span;
}
}
/// Simulates a subscriber that records span data.
-struct Record(Mutex