-
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
[Performance] Add spans for plugin initialization and hook execution #129050
Comments
Pinging @elastic/kibana-core (Team:Core) |
There's no
That totally makes sense, just some remarks:
ATM we're basically just converting our hook format to HAPI's, e.g: kibana/src/core/server/http/http_server.ts Lines 395 to 404 in d5416ed
So we'll add to introduce spans in our conversion function, such as Note that we don't have a name/id nor the source (pluginId or
Correct me if I'm wrong here, but the |
Huge +1 to this! I have questions about how to best implement this? We currently set up
Is it enough to set a span to measure each lifecycle step instead of each hook registered in each lifecycle step? I'm wondering how it would affect performance if we start a span for each hook. Also, we may hit the What do you think? |
@afharo I would consult with the @elastic/apm-agent-node-js team. Maybe hit up the #apm-instrumentation-of-stack channel and ask there? |
While benchmarking Kibana server's performance, I tried using our APM integration to find performance bottlenecks.
While it was easy to enable and worked well, it was evident that we're missing critical information about the execution of some key functions:
preboot
,setup
andstart
time of each plugin (should be reported as spans under thekibana-platform
transactions).http
service:PreAuth
,Auth
,PostAuth
,PreRouting
,PreResponse
. (should be reported as spans under therequest
transactions).The text was updated successfully, but these errors were encountered: