pub fn gpu_metrics_span<R, F: FnOnce() -> R>( name: impl Into<Cow<'static, str>>, f: F, ) -> Result<R, CudaError>
A GPU-aware span that collects a gauge metric using CUDA events.