From 168a3fd34824adc9c6a606cd144219701f15cccf Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 17 Dec 2025 21:23:46 -0500 Subject: [Rust] Replace `log` with `tracing` - Added more documentation - Replaced global named logger for plugins, fixing the issue when the CU has multiple (e.g. statically linked demo) - Simplified some misc code This is a breaking change, but I believe there is no better time to make it, we cannot continue to use the `log` crate, it is too limited for our needs. --- rust/src/workflow/activity.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rust/src/workflow') diff --git a/rust/src/workflow/activity.rs b/rust/src/workflow/activity.rs index a9afc2f1..2e5d6e80 100644 --- a/rust/src/workflow/activity.rs +++ b/rust/src/workflow/activity.rs @@ -69,7 +69,9 @@ impl Activity { ) { let ctxt = &mut *(ctxt as *mut F); if let Some(analysis) = NonNull::new(analysis) { - ctxt(&AnalysisContext::from_raw(analysis)) + let analysis = AnalysisContext::from_raw(analysis); + let _span = ffi_span!("Activity::action", analysis.view()); + ctxt(&analysis) } } let config = config.as_config(); -- cgit v1.3.1