@@ -34,7 +34,6 @@ pub struct {{Codec.Name}}<T>
3434where T: super::stub::{ {Codec.Name} } + std::fmt::Debug + Send + Sync {
3535 inner: T,
3636 {{#Codec.DetailedTracingAttributes} }
37- #[cfg(google_cloud_unstable_tracing)]
3837 { {! Use a fully qualified name to avoid conflicts with any client called `DurationMetric` } }
3938 duration: gaxi::observability::DurationMetric,
4039 { {/Codec.DetailedTracingAttributes} }
@@ -49,7 +48,6 @@ where T: super::stub::{{Codec.Name}} + std::fmt::Debug + Send + Sync {
4948 Self {
5049 inner,
5150 {{#Codec.DetailedTracingAttributes} }
52- #[cfg(google_cloud_unstable_tracing)]
5351 duration: gaxi::observability::DurationMetric::new(
5452 &info::INSTRUMENTATION_CLIENT_INFO,
5553 ),
@@ -77,7 +75,6 @@ where T: super::stub::{{Codec.Name}} + std::fmt::Debug + Send + Sync {
7775 options: crate::RequestOptions,
7876 ) -> Result<crate::Response <{ { Codec.ReturnType} } >> {
7977 {{#Codec.DetailedTracingAttributes} }
80- #[cfg(google_cloud_unstable_tracing)]
8178 {
8279 let (_span, pending) = gaxi::client_request_signals! (
8380 metric: self.duration.clone(),
@@ -86,9 +83,10 @@ where T: super::stub::{{Codec.Name}} + std::fmt::Debug + Send + Sync {
8683 self.inner.{{Codec.Name} }(req, options));
8784 pending.await
8885 }
89- #[cfg(not(google_cloud_unstable_tracing))]
90- { {/ Codec.DetailedTracingAttributes } }
86+ { {/Codec.DetailedTracingAttributes } }
87+ { {^ Codec.DetailedTracingAttributes} }
9188 self.inner.{ {Codec.Name} }(req, options).await
89+ { {/Codec.DetailedTracingAttributes} }
9290 }
9391 { {/Codec.Methods} }
9492 { {#Codec.HasLROs} }
@@ -112,7 +110,6 @@ where T: super::stub::{{Codec.Name}} + std::fmt::Debug + Send + Sync {
112110{ {/Codec.Services} }
113111{ {#Codec.HasServices} }
114112{ {#Codec.DetailedTracingAttributes} }
115- #[cfg(google_cloud_unstable_tracing)]
116113pub(crate) mod info {
117114 const NAME: &str = env! (" CARGO_PKG_NAME" );
118115 const VERSION: &str = env! (" CARGO_PKG_VERSION" );
0 commit comments