-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Usage collection] move plugin to core #101146
Comments
Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry) |
Pinging @elastic/kibana-core (Team:Core) |
How will we manage the transition period if we do that in 2 steps? Will the usage collection plugin bridge to the new core service during this time? |
Yes just directly returning the |
I started doing so long ago (#69306) but closed the PR because we changed our plans. I'd be happy to dust off those changes again :) |
Alternative approach: how about moving the APIs to a Package? Would it be possible? |
I don't know the usage collection internal implementation that well, but it's using core services, right? I'm guessing at least savedObjects. Moving usage collection to a package means that it would still require to be instantiated from a plugin or from core to connect it to the core services it requires to function. Plus, the core service's types being in Given that, I'm not sure there would be any upside compared to moving it to core? |
Summary
Usage collection plugin exposes apis for other plugins to send telemetry from the browser and server. Having these apis exposed via a plugin instead having it as a core service has several drawbacks:
Is this a breaking change?
No. We do not recommend or document this API for outside contributors. Any usage sent by external plugins is not used at Elastic.
Is this a big change?
Yes. The following steps are required to complete this task:
core_usage
service and using the usage_collection service in core instead.The text was updated successfully, but these errors were encountered: