-
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
[Fleet] Add telemetry for integration cards #115413
[Fleet] Add telemetry for integration cards #115413
Conversation
Pinging @elastic/fleet (Team:Fleet) |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
const unmount = renderApp(startServices, params, config, kibanaVersion, extensions); | ||
|
||
const Tracker = | ||
deps.usageCollection?.components.ApplicationUsageTrackingProvider ?? React.Fragment; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting little trick here with React.Fragment
. Any risks to using this vs. a simple 'passthrough' component like:
const Passthrough: React.FC = ({ children }) => children
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is boilerplate from the telemetry-docs
kibana/src/plugins/kibana_usage_collection/server/collectors/application_usage/README.md
Line 34 in d230720
const ApplicationUsageTrackingProvider = plugins.usageCollection?.components.ApplicationUsageTrackingProvider ?? React.Fragment; |
The same syntax is used also in the ML, SIEM, and Maps plugins.
kibana/x-pack/plugins/maps/public/plugin.ts
Line 186 in a67eef4
plugins.usageCollection?.components.ApplicationUsageTrackingProvider ?? React.Fragment; |
deps.usageCollection?.components.ApplicationUsageTrackingProvider ?? React.Fragment; |
usageCollection?.components.ApplicationUsageTrackingProvider ?? React.Fragment; |
So I think it should be OK.
FYI this PR adds a few "featured" cards that we need to track as well. I added note here about how this could be done, but want to mention it here to ensure it doesn't get missed: #115495 (comment) |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Co-authored-by: Thomas Neirynck <[email protected]>
…-link-to-kibana-app * 'master' of github.com:elastic/kibana: (30 commits) Fix potential error from undefined (elastic#115562) [App Search, Crawler] Fix validation step panel padding/whitespace (elastic#115542) [Cases][Connectors] ServiceNow ITOM: MVP (elastic#114125) Change default session idle timeout to 8 hours. (elastic#115565) Upgrade EUI to v39.1.1 (elastic#114732) [App Search] Wired up organic results on Curation Suggestions view (elastic#114717) [i18n] remove i18n html extractor (elastic#115004) [Logs/Metrics UI] Add deprecated field configuration to Deprecations API (elastic#115103) [Transform] Add alerting rules management to Transform UI (elastic#115363) Update UI links to Fleet and Agent docs (elastic#115295) [ML] Adding ability to change data view in advanced job wizard (elastic#115191) Change deleteByNamespace to include legacy URL aliases (elastic#115459) [Unified Integrations] Remove and cleanup add data views (elastic#115424) [Discover] Show ignored field values (elastic#115040) [ML] Stop reading the ml.max_open_jobs node attribute (elastic#115524) [Discover] Improve doc viewer code in Discover (elastic#114759) [Security Solutions] Adds security detection rule actions as importable and exportable (elastic#115243) [Security Solution] [Platform] Migrate legacy actions whenever user interacts with the rule (elastic#115101) [Fleet] Add telemetry for integration cards (elastic#115413) 🐛 Fix single percentile case when ES is returning no buckets (elastic#115214) ... # Conflicts: # x-pack/plugins/reporting/public/management/__snapshots__/report_listing.test.tsx.snap
Summary
Closes #113835
Adds
data-test-subj
attribute and UI-tracker to package-cards.id
for both is of the form:integration-card:[epr|ui_link]:{card-id}
For maintainers