Skip to content

Commit fc2d6ba

Browse files
committed
add try_close impl to sloggish example
Signed-off-by: Eliza Weisman <[email protected]>
1 parent 764844c commit fc2d6ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tracing/examples/sloggish/sloggish_subscriber.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,9 @@ impl Subscriber for SloggishSubscriber {
278278
// TODO: unify stack with current span
279279
self.current.exit();
280280
}
281+
282+
fn try_close(&self, _id: tracing::Id) -> bool {
283+
// TODO: GC unneeded spans.
284+
false
285+
}
281286
}

0 commit comments

Comments
 (0)