We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c745edb commit 3b7d7a3Copy full SHA for 3b7d7a3
1 file changed
src/lro/src/internal/tracing.rs
@@ -89,6 +89,21 @@ impl LroRecorder {
89
}
90
91
92
+/// Injects LRO-specific telemetry attributes into the active span.
93
+#[macro_export]
94
+#[doc(hidden)]
95
+macro_rules! record_polling_attributes {
96
+ ($span:expr) => {
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);
102
+ }
103
104
+ };
105
+}
106
+
107
/// Decorate a poller with tracing information.
108
#[derive(Clone, Debug)]
109
pub struct Tracing<P> {
0 commit comments