elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.99k stars 8.24k forks source link

[APM UI] Mobile service overview retrieving filters incorrectly #155157

Closed achyutjhunjhunwala closed 1 year ago

achyutjhunjhunwala commented 1 year ago

Kibana version: : 8.7 (whenever mobile filters were introduced)

Describe the bug:

On the Mobile service overview page, the filters are currently loaded by making a Terms Aggregation call to transaction events https://github.com/achyutjhunjhunwala/kibana/blob/da85e71d561a0ea178737274c3cbc588628950eb/x-pack/plugins/apm/server/routes/mobile/get_mobile_filters.ts#L90-L95 https://github.com/elastic/kibana/blob/da85e71d561a0ea178737274c3cbc588628950eb/x-pack/plugins/apm/server/routes/mobile/get_mobile_filters.ts#L90-L95

Though this is fine to retrieve Devices, OS Versions and App Versions, but this is not valid for Network Connection Type as Network Connection Types are present on Span Events and not Transaction Events.

Previously this used to work because of a known bug with ios mobile agent where these spans would sometimes be considered as transactions.

elasticmachine commented 1 year ago

Pinging @elastic/apm-ui (Team:APM)