Skip to content

Commit

Permalink
Merge pull request #4 from mockersf/develop
Browse files Browse the repository at this point in the history
update tracing-subscriber to 0.3
  • Loading branch information
thoren-d committed Nov 11, 2021
2 parents 6bbe3c9 + b781933 commit e213df4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ repository = "https://github.com/thoren-d/tracing-chrome"
[dependencies]
json = "0.12.4"
tracing = "0.1.21"
tracing-subscriber = "0.2.15"
tracing-subscriber = "0.3.1"
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ where
}

fn get_root_id(span: SpanRef<S>) -> u64 {
span.from_root()
span.scope()
.from_root()
.take(1)
.next()
.unwrap_or(span)
Expand Down Expand Up @@ -488,7 +489,7 @@ where
self.exit_span(ctx.span(id).expect("Span not found."), ts);
}

fn new_span(&self, attrs: &span::Attributes<'_>, id: &span::Id, ctx: Context<'_, S>) {
fn on_new_span(&self, attrs: &span::Attributes<'_>, id: &span::Id, ctx: Context<'_, S>) {
let ts = self.get_ts();
if self.include_args {
let mut args = Object::new();
Expand Down

0 comments on commit e213df4

Please sign in to comment.