agent: Auto-capture telemetry feature flag (#28271)

Release Notes:

- N/A
This commit is contained in:
Thomas Mickley-Doyle 2025-04-10 15:07:48 -05:00 committed by GitHub
parent 986da332db
commit 46b1df2e2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 77 additions and 0 deletions

View file

@ -95,6 +95,15 @@ impl FeatureFlag for Debugger {
const NAME: &'static str = "debugger";
}
pub struct ThreadAutoCapture {}
impl FeatureFlag for ThreadAutoCapture {
const NAME: &'static str = "thread-auto-capture";
fn enabled_for_staff() -> bool {
false
}
}
pub trait FeatureFlagViewExt<V: 'static> {
fn observe_flag<T: FeatureFlag, F>(&mut self, window: &Window, callback: F) -> Subscription
where