fix(snix/[ca]store): restore client trace propagation
This broke in cl/11976 and cl/11983, the ::with_interceptor() calls went missing. Change-Id: Ic78a88d6c102d79da58fe45d5e595d3879c12af7 Reviewed-on: https://cl.snix.dev/c/snix/+/30631 Tested-by: besadii Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
This commit is contained in:
parent
a9d5c184d5
commit
74264569ee
3 changed files with 6 additions and 3 deletions
|
|
@ -215,8 +215,9 @@ impl ServiceBuilder for GRPCBlobServiceConfig {
|
|||
instance_name: &str,
|
||||
_context: &CompositionContext,
|
||||
) -> Result<Arc<dyn BlobService>, Box<dyn std::error::Error + Send + Sync + 'static>> {
|
||||
let client = proto::blob_service_client::BlobServiceClient::new(
|
||||
let client = proto::blob_service_client::BlobServiceClient::with_interceptor(
|
||||
crate::tonic::channel_from_url(&self.url.parse()?).await?,
|
||||
snix_tracing::propagate::tonic::send_trace,
|
||||
);
|
||||
Ok(Arc::new(GRPCBlobService::from_client(
|
||||
instance_name.to_string(),
|
||||
|
|
|
|||
|
|
@ -243,8 +243,9 @@ impl ServiceBuilder for GRPCDirectoryServiceConfig {
|
|||
instance_name: &str,
|
||||
_context: &CompositionContext,
|
||||
) -> Result<Arc<dyn DirectoryService>, Box<dyn std::error::Error + Send + Sync + 'static>> {
|
||||
let client = proto::directory_service_client::DirectoryServiceClient::new(
|
||||
let client = proto::directory_service_client::DirectoryServiceClient::with_interceptor(
|
||||
crate::tonic::channel_from_url(&self.url.parse()?).await?,
|
||||
snix_tracing::propagate::tonic::send_trace,
|
||||
);
|
||||
Ok(Arc::new(GRPCDirectoryService::from_client(
|
||||
instance_name.to_string(),
|
||||
|
|
|
|||
|
|
@ -173,8 +173,9 @@ impl ServiceBuilder for GRPCPathInfoServiceConfig {
|
|||
instance_name: &str,
|
||||
_context: &CompositionContext,
|
||||
) -> Result<Arc<dyn PathInfoService>, Box<dyn std::error::Error + Send + Sync + 'static>> {
|
||||
let client = proto::path_info_service_client::PathInfoServiceClient::new(
|
||||
let client = proto::path_info_service_client::PathInfoServiceClient::with_interceptor(
|
||||
snix_castore::tonic::channel_from_url(&self.url.parse()?).await?,
|
||||
snix_tracing::propagate::tonic::send_trace,
|
||||
);
|
||||
Ok(Arc::new(GRPCPathInfoService::from_client(
|
||||
instance_name.to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue