elastic / kibana

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

Profiling Integration on APM services uses incorrect data source #183654

Open JonasKunz opened 6 months ago

JonasKunz commented 6 months ago

While playing around with the Universal Profiling <-> APM integration on staging, I uncovered a bug in the Universal Profiling tab on the APM service UI.

I'm talking about this page: image

When an APM-agent is running with the universal profiling correlation enabled, this page is supposed to show a flamegraph for all samples recorded for the process of the service.

However, what it actually shows is only the samples which have occurred within transactions of said service. This is visible by following the Go to Universal Profiling Flamegraph link:

image

Here the flamegraph shows much more data, consisting of samples which occurred within transaction AND samples of background tasks which are not covered by transactions.

Note that I manually had to add the service.name: "$serviceName" filter after following the link, this also seems like a bug to me.

I assume the root cause for this problem is that the Universal Profiling tab on the APM-service page uses the wrong data set for rendering the flamegraph:

elasticmachine commented 6 months ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

botelastic[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.