pub fn record_change(change: Change)Expand description
Records one change (a feature flag flip, a config edit, a migration, anything worth lining up against your errors) so ForgeOps can show it next to what happened afterward. Delivered on the background thread like any error, so this never blocks; a no-op when reporting isn’t enabled, and a failed delivery (including a plan without change tracking) is silently dropped.
use forge_ops_tracker::{context, Change};
forge_ops_tracker::record_change(Change::new("migration", "Add index to orders.created_at"));
forge_ops_tracker::record_change(Change {
details: context! {"flag" => "new_checkout", "enabled" => true},
actor: Some("alice@example.com".to_string()),
..Change::new("feature_flag", "Enabled new checkout for everyone")
});