Move telemetry settings check into telemetry module
This commit is contained in:
parent
c76fcb3ca5
commit
2972ee8ced
7 changed files with 41 additions and 77 deletions
|
@ -16,7 +16,7 @@ use ai::{
|
|||
use ai::prompts::repository_context::PromptCodeSnippet;
|
||||
use anyhow::{anyhow, Result};
|
||||
use chrono::{DateTime, Local};
|
||||
use client::{telemetry::AssistantKind, TelemetrySettings};
|
||||
use client::telemetry::AssistantKind;
|
||||
use collections::{hash_map, HashMap, HashSet, VecDeque};
|
||||
use editor::{
|
||||
display_map::{
|
||||
|
@ -3527,12 +3527,5 @@ fn report_assistant_event(
|
|||
.default_open_ai_model
|
||||
.clone();
|
||||
|
||||
let telemetry_settings = TelemetrySettings::get_global(cx).clone();
|
||||
|
||||
telemetry.report_assistant_event(
|
||||
telemetry_settings,
|
||||
conversation_id,
|
||||
assistant_kind,
|
||||
model.full_name(),
|
||||
)
|
||||
telemetry.report_assistant_event(conversation_id, assistant_kind, model.full_name(), cx)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue