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

[Profiling] adding KQL bar to embeddables #171016

Merged

Conversation

cauemarcondes
Copy link
Contributor

@cauemarcondes cauemarcondes commented Nov 10, 2023

Adding KQL bar to the Flamegraph and Top 10 functions embeddable.

kql.mov

New version:
Screenshot 2023-11-21 at 11 14 32

@cauemarcondes cauemarcondes requested review from a team as code owners November 10, 2023 12:43
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Nov 10, 2023
@elasticmachine
Copy link
Contributor

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

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@crespocarlos crespocarlos self-requested a review November 10, 2023 13:51
Copy link
Contributor

@mykolaharmash mykolaharmash left a comment

Choose a reason for hiding this comment

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

Looks good ✨ Only a couple of minor comments.

x-pack/plugins/apm/common/utils/to_kuery_filter_format.ts Outdated Show resolved Hide resolved
x-pack/plugins/apm/common/utils/to_kuery_filter_format.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

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

LGMT!

In the description, could we add the steps to test the PR? I believe it would help reviewers get up to speed with working on Profiling in general.

@cauemarcondes cauemarcondes enabled auto-merge (squash) November 20, 2023 10:11
Copy link
Contributor

@kpatticha kpatticha left a comment

Choose a reason for hiding this comment

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

image

tried lucene by accident and it seems it doesn't work

Also, out of curiosity, why you didn't export the search bar as an embeddable? I think exporting the components provides greater flexibility in integrating and customizing the UI.

@cauemarcondes
Copy link
Contributor Author

cauemarcondes commented Nov 20, 2023

Also, out of curiosity, why you didn't export the search bar as an embeddable? I think exporting the components provides greater flexibility in integrating and customizing the UI.

Do you see the Profiling kuery bar being used independently in any plugin? I think the kuery bar will always be used together with another Profiling component to filter its result down. That is the reason I did not create a new embeddable for the kuery bar itself.

@kpatticha
Copy link
Contributor

Also, out of curiosity, why you didn't export the search bar as an embeddable? I think exporting the components provides greater flexibility in integrating and customizing the UI.

Do you see the Profiling kuery bar being used independently in any plugin? I think the kuery bar will always be used together with another Profiling component to filter its result down. That is the reason I did not create a new embeddable for the kuery bar itself.

Not really, I expect that the profiling search bar will always be used with another Profiling component.

However, here is an example of Alerts exporting the search bar https://github.com/elastic/kibana/blob/2a8a68c1f8d14074d23ca9feef118aa172191bfe/x-pack/plugins/apm/public/components/app/alerts_overview/index.tsx#L85C14-L101 (it doesn't have to be the same for profiling, I was just curious)

@cauemarcondes
Copy link
Contributor Author

Not really, I expect that the profiling search bar will always be used with another Profiling component.

However, here is an example of Alerts exporting the search bar https://github.com/elastic/kibana/blob/2a8a68c1f8d14074d23ca9feef118aa172191bfe/x-pack/plugins/apm/public/components/app/alerts_overview/index.tsx#L85C14-L101 (it doesn't have to be the same for profiling, I was just curious)

The advantage I see is the client will be able to position the kuery bar wherever they want. We could place it on top of the tabs for example.

@cauemarcondes
Copy link
Contributor Author

Ok, after talking to @iogbole we agreed that would be better to display the Profiling kuery bar on top of the Tabs, also to keep it consistent with the other pages. Thanks for raising it up @kpatticha.

@cauemarcondes cauemarcondes enabled auto-merge (squash) November 22, 2023 11:50
@cauemarcondes
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/docs

@kibanamachine kibanamachine requested a review from a team as a code owner November 23, 2023 10:41
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observabilityShared 131 132 +1
profiling 213 215 +2
total +3

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
observabilityShared 289 301 +12

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 3.7MB 3.7MB +367.0B
profiling 365.8KB 369.2KB +3.4KB
serverlessSearch 369.1KB 369.2KB +147.0B
total +3.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observabilityShared 47.3KB 48.0KB +782.0B
profiling 18.7KB 19.2KB +532.0B
total +1.3KB
Unknown metric groups

API count

id before after diff
observabilityShared 292 305 +13

async chunk count

id before after diff
profiling 6 7 +1

ESLint disabled line counts

id before after diff
observabilityShared 9 10 +1

Total ESLint disabled count

id before after diff
observabilityShared 9 10 +1

History

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

@cauemarcondes cauemarcondes merged commit 07432ab into elastic:main Nov 23, 2023
29 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Nov 23, 2023
@cauemarcondes cauemarcondes deleted the profiling-embeddables-kql-filter branch November 23, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:enhancement Team:APM All issues that need APM UI Team support v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants