We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1059b90 commit a3c4a5bCopy full SHA for a3c4a5b
1 file changed
src/lro/src/internal/tracing.rs
@@ -98,6 +98,21 @@ impl LroRecorder {
98
}
99
100
101
+/// Injects LRO-specific telemetry attributes into the active span.
102
+#[macro_export]
103
+#[doc(hidden)]
104
+macro_rules! record_polling_attributes {
105
+ ($span:expr) => {
106
+ #[cfg(google_cloud_unstable_tracing)]
107
+ {
108
+ if let Ok(attempt) = $crate::POLL_ATTEMPT_COUNT.try_with(|c| *c) {
109
+ $span.record("gcp.longrunning.poll_attempt_count", attempt);
110
+ $span.record("gcp.longrunning.done", false);
111
+ }
112
113
+ };
114
+}
115
+
116
/// Decorate a poller with tracing information.
117
#[derive(Clone, Debug)]
118
pub struct Tracing<P> {
0 commit comments