Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DQL telemetry endpoint call from QueryStringInput component #8878

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/8878.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Remove DQL telemetry endpoint call from QueryStringInput component ([#8878](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8878))
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,6 @@ export default class QueryStringInputUI extends Component<Props, State> {
};

private onSelectLanguage = (language: string) => {
// Send telemetry info every time the user opts in or out of kuery
// As a result it is important this function only ever gets called in the
// UI component's change handler.
this.services.http.post('/api/opensearch-dashboards/dql_opt_in_stats', {
body: JSON.stringify({ opt_in: language === 'kuery' }),
});

this.services.storage.set('userQueryLanguage', language);

const newQuery = { query: '', language };
Expand Down
Loading