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

[Code] frontend telemetry #46154

Merged
merged 1 commit into from
Sep 25, 2019
Merged

[Code] frontend telemetry #46154

merged 1 commit into from
Sep 25, 2019

Conversation

WangQianliang
Copy link
Contributor

@WangQianliang WangQianliang commented Sep 19, 2019

Summary

  • page load counts for each page (Admin, Source, Search Page)
  • source page view with lsp data available

click counts on

  • file tree
  • breadcrumb
  • line number
  • structure tree

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] Documentation was added for features that require explanation or tutorials
- [ ] Unit or functional tests were updated or added to match the most common scenarios
- [ ] This was checked for keyboard-only and screenreader accessibility

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately

@WangQianliang WangQianliang added v8.0.0 Team:Code release_note:skip Skip the PR/issue when compiling release notes v7.4.0 labels Sep 19, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/code

@mw-ding
Copy link
Contributor

mw-ding commented Sep 19, 2019

This is a follow up PR of #45467

@mw-ding mw-ding added v7.4.1 and removed v7.4.0 labels Sep 19, 2019
@mw-ding mw-ding requested a review from Bamieh September 19, 2019 16:38
Copy link
Contributor

@mw-ding mw-ding left a comment

Choose a reason for hiding this comment

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

Great! Mostly are good. leave some minor comments below

@@ -129,6 +130,7 @@ export class CodeFileTree extends React.Component<Props, State> {
const path = flattenFrom ? flattenFrom.path! : node.path!;
this.toggleTree(path);
this.onClick(node);
trackCodeUiMetric(METRIC_TYPE.COUNT, 'fileTree');
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add the metrics name/enum to this place: https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/code/model/usage_telemetry_metrics.ts#L7, instead of hardwiring them in code?

Copy link
Contributor

Choose a reason for hiding this comment

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

And it would be great if you can elaborate on what does each metric mean there as comments.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@mw-ding mw-ding left a comment

Choose a reason for hiding this comment

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

@Bamieh Can you take a look on this as well?

@@ -8,4 +8,12 @@ export enum CodeUsageMetrics {
ENABLED = 'enabled',
REPOSITORIES = 'repositories',
LANGUAGE_SERVERS = 'langserver',
ADMIN_PAGE_LOAD_COUNT = 'adminPageLoadCount',
Copy link
Contributor

Choose a reason for hiding this comment

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

one last comment before merging this PR. Let's separate the metrics for backend and frontend. Moves these new ones to sth like CodeUsageUiMetrics?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mw-ding
Copy link
Contributor

mw-ding commented Sep 24, 2019

@Bamieh friendly ping on the review.

@WangQianliang WangQianliang merged commit 1d98534 into elastic:master Sep 25, 2019
@WangQianliang WangQianliang deleted the code-frontend-telemetry branch September 25, 2019 15:15
mw-ding added a commit that referenced this pull request Oct 9, 2019
…7491)

* chore(code/frontend): frontend telemetry (#46154)

* fix type check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported release_note:skip Skip the PR/issue when compiling release notes v7.4.1 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants