@@ -77,6 +77,7 @@ impl TelemetryCachedClient {
7777 instance_id : & InstanceId ,
7878 runtime_meta : & RuntimeMetadata ,
7979 get_config : impl FnOnce ( ) -> libdd_telemetry:: config:: Config ,
80+ process_tags : Option < String > ,
8081 ) -> Self {
8182 let mut builder = TelemetryWorkerBuilder :: new_fetch_host (
8283 service. to_string ( ) ,
@@ -87,6 +88,7 @@ impl TelemetryCachedClient {
8788
8889 builder. runtime_id = Some ( instance_id. runtime_id . clone ( ) ) ;
8990 builder. application . env = Some ( env. to_string ( ) ) ;
91+ builder. application . process_tags = process_tags;
9092 let config = get_config ( ) ;
9193 builder. config = config. clone ( ) ;
9294
@@ -298,6 +300,7 @@ impl TelemetryCachedClientSet {
298300 instance_id : & InstanceId ,
299301 runtime_meta : & RuntimeMetadata ,
300302 get_config : F ,
303+ process_tags : Option < String > ,
301304 ) -> Arc < Mutex < TelemetryCachedClient > >
302305 where
303306 F : FnOnce ( ) -> libdd_telemetry:: config:: Config ,
@@ -330,6 +333,7 @@ impl TelemetryCachedClientSet {
330333 instance_id,
331334 runtime_meta,
332335 get_config,
336+ process_tags,
333337 ) ) ) ,
334338 } ;
335339
@@ -487,12 +491,15 @@ fn get_telemetry_client(
487491 } )
488492 } ;
489493
494+ let process_tags = session. process_tags . lock_or_panic ( ) . clone ( ) ;
495+
490496 TelemetryCachedClientSet :: get_or_create (
491497 & sidecar. telemetry_clients ,
492498 service_name,
493499 env_name,
494500 instance_id,
495501 & runtime_meta,
496502 get_config,
503+ process_tags,
497504 )
498505}
0 commit comments