File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use std::{
99 sync:: Arc ,
1010} ;
1111use tokio:: sync:: watch;
12+ use tracing:: { info_span, Instrument } ;
1213
1314#[ derive( Clone , Debug ) ]
1415pub struct Store {
@@ -93,6 +94,7 @@ impl Store {
9394 discover
9495 . clone ( )
9596 . spawn_watch ( port)
97+ . instrument ( info_span ! ( "watch" , %port) )
9698 . map_ok ( move |rsp| ( port, rsp. into_inner ( ) ) )
9799 } ) ;
98100
Original file line number Diff line number Diff line change @@ -210,7 +210,11 @@ impl Config {
210210 . instrument ( info_span ! ( "outbound" ) ) ,
211211 ) ;
212212
213- let inbound_policies = inbound. build_policies ( dns, control_metrics) . await ;
213+ let inbound_policies = inbound
214+ . build_policies ( dns, control_metrics)
215+ . instrument ( info_span ! ( "policy" ) )
216+ . await ;
217+
214218 tokio:: spawn (
215219 inbound
216220 . serve (
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use linkerd_error::Recover;
66use linkerd_stack:: { Service , ServiceExt } ;
77use std:: task:: { Context , Poll } ;
88use tokio:: sync:: watch;
9- use tracing:: { debug, trace} ;
9+ use tracing:: { debug, trace, Instrument } ;
1010
1111/// A service that streams updates from an inner service into a `tokio::sync::watch::Receiver` on a
1212/// background task.
5555 // Spawn a background task to keep the profile watch up-to-date until all copies of `rx`
5656 // have dropped.
5757 let ( tx, rx) = watch:: channel ( init) ;
58- tokio:: spawn ( self . publish_updates ( target, tx, inner) ) ;
58+ tokio:: spawn ( self . publish_updates ( target, tx, inner) . in_current_span ( ) ) ;
5959 rx
6060 } ) )
6161 }
You can’t perform that action at this time.
0 commit comments