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

Collect cluster information for telemetry. #543

Merged
merged 3 commits into from
Apr 5, 2021

Conversation

sudhirverma
Copy link
Contributor

Fix: #526

@codecov-io
Copy link

Codecov Report

Merging #543 (3277d0a) into master (9972c85) will decrease coverage by 0.06%.
The diff coverage is 70.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #543      +/-   ##
==========================================
- Coverage   68.28%   68.22%   -0.07%     
==========================================
  Files          96       96              
  Lines        5774     5785      +11     
  Branches     1002     1018      +16     
==========================================
+ Hits         3943     3947       +4     
- Misses       1831     1838       +7     
Impacted Files Coverage Δ
src/tkn.ts 74.50% <70.00%> (-0.43%) ⬇️
src/hub/task-page-view.ts 19.64% <0.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9972c85...3277d0a. Read the comment docs.

@sudhirverma sudhirverma requested a review from evidolob April 2, 2021 04:41
src/tkn.ts Outdated
@@ -138,27 +139,32 @@ export class TknImpl implements Tkn {
const kubectlCheck = RegExp('kubectl:\\s*command not found');
if (kubectlCheck.test(getStderrString(result.error))) {
const tknMessage = 'Please install kubectl.';
telemetryLogCommand('kubeclt_not_found', tknMessage);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of telemetryLogCommand function is worry me, as you are not reporting of execution of command. Maybe we need another function to report such info.

@sudhirverma sudhirverma requested a review from evidolob April 2, 2021 10:40
src/telemetry.ts Outdated
return telemetryProps;
}

export function telemetryClusterInfo(commandId: string, message?: string): void {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking to have common function for sending telemetry data.
I don't think that having separate function for every possible telemetry data is good.

Also it is not clear what commandId means in context of this function.

@sudhirverma sudhirverma merged commit 020509e into redhat-developer:master Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collect cluster information for telemetry.
3 participants