1 | use tracing_core::{metadata::Metadata, span, subscriber::Subscriber, Event}; |
2 | |
3 | pub struct TestSubscriberA; |
4 | impl Subscriber for TestSubscriberA { |
5 | fn enabled(&self, _: &Metadata<'_>) -> bool { |
6 | true |
7 | } |
8 | fn new_span(&self, _: &span::Attributes<'_>) -> span::Id { |
9 | span::Id::from_u64(1) |
10 | } |
11 | fn record(&self, _: &span::Id, _: &span::Record<'_>) {} |
12 | fn record_follows_from(&self, _: &span::Id, _: &span::Id) {} |
13 | fn event(&self, _: &Event<'_>) {} |
14 | fn enter(&self, _: &span::Id) {} |
15 | fn exit(&self, _: &span::Id) {} |
16 | } |
17 | pub struct TestSubscriberB; |
18 | impl Subscriber for TestSubscriberB { |
19 | fn enabled(&self, _: &Metadata<'_>) -> bool { |
20 | true |
21 | } |
22 | fn new_span(&self, _: &span::Attributes<'_>) -> span::Id { |
23 | span::Id::from_u64(1) |
24 | } |
25 | fn record(&self, _: &span::Id, _: &span::Record<'_>) {} |
26 | fn record_follows_from(&self, _: &span::Id, _: &span::Id) {} |
27 | fn event(&self, _: &Event<'_>) {} |
28 | fn enter(&self, _: &span::Id) {} |
29 | fn exit(&self, _: &span::Id) {} |
30 | } |
31 | |