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

[data.search.session] Server telemetry on search sessions #91256

Merged
merged 4 commits into from
Feb 15, 2021

Conversation

lukasolson
Copy link
Member

Summary

Resolves #62964.

Adds server-side telemetry for search sessions. Right now all it reports is the number of persisted/transient sessions, as well as the total count, but we can extend this to report more stats.

@lukasolson lukasolson added review Feature:Search Querying infrastructure in Kibana Feature:Telemetry v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Project:AsyncSearch Background search, partial results, async search services. v7.12.0 labels Feb 11, 2021
@lukasolson lukasolson requested review from lizozom and Dosant February 11, 2021 23:40
@lukasolson lukasolson self-assigned this Feb 11, 2021
@lukasolson lukasolson requested a review from a team as a code owner February 11, 2021 23:40
@lukasolson lukasolson requested review from a team as code owners February 12, 2021 01:47
Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

},
});
usageCollection.registerCollector(collector);
} catch (err) {
Copy link
Member

@Bamieh Bamieh Feb 15, 2021

Choose a reason for hiding this comment

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

NIT: I dont see any reason to have this try/catch in place. usageCollection is not optional in this function parameters and we never throw on collection registration.

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Added some error handling + unit tests
LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@lizozom lizozom merged commit 42e11e6 into elastic:master Feb 15, 2021
lizozom pushed a commit to lizozom/kibana that referenced this pull request Feb 15, 2021
)

* [data.search.session] Server telemetry on search sessions

* Update telemetry mappings

* Added tests and logger

Co-authored-by: Liza K <[email protected]>
lizozom added a commit that referenced this pull request Feb 15, 2021
…91410)

* [data.search.session] Server telemetry on search sessions

* Update telemetry mappings

* Added tests and logger

Co-authored-by: Liza K <[email protected]>

Co-authored-by: Lukas Olson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Search Querying infrastructure in Kibana Feature:Telemetry Project:AsyncSearch Background search, partial results, async search services. release_note:skip Skip the PR/issue when compiling release notes review v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Search] Telemetry on async search/search sessions
5 participants