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

[Files] Added usage counters for delete, unshare and download #140091

Merged
merged 14 commits into from
Sep 21, 2022

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Sep 6, 2022

Summary

To better track usage, this PR introduces use of usage counters of a select set of actions to enrich telemetry.

Continuation from: #140079

@jloleysens jloleysens added release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated: Automatically backport this PR after it's merged Team:AppServicesUx v8.5.0 feature:Files labels Sep 6, 2022
@jloleysens jloleysens force-pushed the files-telemetry-part-ii-KS-2835 branch from 419b44e to 07a807f Compare September 6, 2022 13:42
@jloleysens jloleysens mentioned this pull request Sep 6, 2022
1 task
@jloleysens jloleysens force-pushed the files-telemetry-part-ii-KS-2835 branch from 393bfd1 to abc5031 Compare September 7, 2022 10:49
@jloleysens jloleysens force-pushed the files-telemetry-part-ii-KS-2835 branch from eb3aed2 to 6ae6c5c Compare September 8, 2022 10:49
@jloleysens jloleysens marked this pull request as ready for review September 8, 2022 10:50
@jloleysens jloleysens requested a review from a team as a code owner September 8, 2022 10:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesUx)

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

Hope we can have error codes/types as context in the error code counter names.

export function getCounters(prefix: string) {
return {
DELETE: `${prefix}_delete`,
DELETE_ERROR: `${prefix}_delete_error`,
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to get more context to the error counter names, such as an error code? I think we could get more value by using event names for errors in the form of: eventType:error:errorCode.

Example: csv_download:error:403

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a really good idea @tsullivan!

I've mapped out some known errors that I think would be of interest. The download case is a little bit hard because the error space is not very well mapped out. Let me know what you think!

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM

@jloleysens jloleysens enabled auto-merge (squash) September 21, 2022 08:55
@jloleysens jloleysens merged commit a160f0d into elastic:main Sep 21, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Sep 21, 2022
@jloleysens jloleysens deleted the files-telemetry-part-ii-KS-2835 branch September 21, 2022 10:20
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 21, 2022
* main:
  [SearchBar] Allow show refresh button as an icon (elastic#141088)
  [Files] Added usage counters for delete, unshare and download (elastic#140091)
  Fix removing a single field formatter  (elastic#141078)
  [APM] Move service metric config  to kibana advanced settings (elastic#141147)
  Synthetics project update improvements (elastic#140990)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged backport:skip This commit does not require backporting feature:Files release_note:skip Skip the PR/issue when compiling release notes v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants