We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b7d7a3 commit 167c3e0Copy full SHA for 167c3e0
1 file changed
src/lro/src/internal/tracing.rs
@@ -97,10 +97,15 @@ macro_rules! record_polling_attributes {
97
#[cfg(google_cloud_unstable_tracing)]
98
{
99
if let Ok(attempt) = $crate::POLL_ATTEMPT_COUNT.try_with(|c| *c) {
100
- $span.record("gcp.longrunning.poll_attempt_count", attempt);
101
- $span.record("gcp.longrunning.done", false);
+ let span = &$span;
+ span.record("gcp.longrunning.poll_attempt_count", attempt);
102
+ span.record("gcp.longrunning.done", false);
103
}
104
105
+ #[cfg(not(google_cloud_unstable_tracing))]
106
+ {
107
+ let _ = &$span;
108
+ }
109
};
110
111
0 commit comments