Skip to content

Commit d4e9eeb

Browse files
committed
don't pull attributes feature of tracing
1 parent 0a1a67d commit d4e9eeb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/davidbarsky/tracing-tree"
99
readme = "README.md"
1010

1111
[dependencies]
12-
tracing = "0.1"
12+
tracing-core = "0.1"
1313
tracing-subscriber = { version = "0.2", default-features = false, features = ["registry", "fmt"] }
1414
termcolor = "1.1"
1515
ansi_term = "0.12"
@@ -20,6 +20,7 @@ tracing-log = { version = "0.1", optional = true }
2020
default = ["tracing-log"]
2121

2222
[dev-dependencies]
23+
tracing = "0.1"
2324
glob = "0.3"
2425
assert_cmd = "1"
2526
log = "0.4"

src/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{
33
fmt::{self, Write as _},
44
io,
55
};
6-
use tracing::{
6+
use tracing_core::{
77
field::{Field, Visit},
88
Level,
99
};

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{
88
sync::Mutex,
99
time::Instant,
1010
};
11-
use tracing::{
11+
use tracing_core::{
1212
field::{Field, Visit},
1313
span::{Attributes, Id},
1414
Event, Subscriber,
@@ -27,7 +27,7 @@ pub(crate) struct Data {
2727
}
2828

2929
impl Data {
30-
pub fn new(attrs: &tracing::span::Attributes<'_>) -> Self {
30+
pub fn new(attrs: &Attributes<'_>) -> Self {
3131
let mut span = Self {
3232
start: Instant::now(),
3333
kvs: Vec::new(),
@@ -209,7 +209,7 @@ where
209209

210210
fn write_span_info<S: Subscriber + for<'span> LookupSpan<'span> + fmt::Debug>(
211211
&self,
212-
id: &tracing::Id,
212+
id: &Id,
213213
ctx: &Context<S>,
214214
style: SpanMode,
215215
) {

0 commit comments

Comments
 (0)