pub struct Telemetry { /* private fields */ }
Implementations§
source§impl Telemetry
impl Telemetry
pub fn new(client: Arc<dyn HttpClient>, cx: &AppContext) -> Arc<Self>
pub fn log_file_path(&self) -> Option<PathBuf>
pub fn start( self: &Arc<Self>, installation_id: Option<String>, session_id: String, cx: &mut AppContext )
pub fn set_authenticated_user_info( self: &Arc<Self>, metrics_id: Option<String>, is_staff: bool, cx: &AppContext )
pub fn report_editor_event( self: &Arc<Self>, telemetry_settings: TelemetrySettings, file_extension: Option<String>, vim_mode: bool, operation: &'static str, copilot_enabled: bool, copilot_enabled_for_language: bool )
pub fn report_copilot_event( self: &Arc<Self>, telemetry_settings: TelemetrySettings, suggestion_id: Option<String>, suggestion_accepted: bool, file_extension: Option<String> )
pub fn report_assistant_event( self: &Arc<Self>, telemetry_settings: TelemetrySettings, conversation_id: Option<String>, kind: AssistantKind, model: &'static str )
pub fn report_call_event( self: &Arc<Self>, telemetry_settings: TelemetrySettings, operation: &'static str, room_id: Option<u64>, channel_id: Option<u64> )
pub fn report_cpu_event( self: &Arc<Self>, telemetry_settings: TelemetrySettings, usage_as_percentage: f32, core_count: u32 )
pub fn report_memory_event( self: &Arc<Self>, telemetry_settings: TelemetrySettings, memory_in_bytes: u64, virtual_memory_in_bytes: u64 )
pub fn metrics_id(self: &Arc<Self>) -> Option<Arc<str>>
pub fn installation_id(self: &Arc<Self>) -> Option<Arc<str>>
pub fn is_staff(self: &Arc<Self>) -> Option<bool>
Auto Trait Implementations§
impl !RefUnwindSafe for Telemetry
impl Send for Telemetry
impl Sync for Telemetry
impl Unpin for Telemetry
impl !UnwindSafe for Telemetry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more