kibana/docs/developer
Cauê Marcondes acf89562c4
[Profiling] Profiling data access plugin (#165198)
This is part 1 of a series of PRs to expose the flamegraph to be used by
other plugins.

**The problem**
Currently for plugin-A to show data from plugin-B, it needs to add
dependency on plugin-B. If plugin-B wants to show data from plugin-A, it
also needs to add plugin-A as a dependency, and here is where the
problem happens. In such scenario, we have a cyclic dependency problem.

**The solution**
To solve this problem a new plugin is created, `profiling-data-access`.
This plugin exposes services that consumer plugins can call in other to
have the data they need to show on their end. The `profiling` plugin is
also using this new plugin. For now, only the flamegraph service is
available, The idea is to slowly migrate the data fetching from
profiling to this new plugin in other to facilitate the integration
across plugins.

**Why some many files?**
As I said, only the flamegraph logic was moved to the new plugin, but it
has many files that it needs to properly build the response of the
service call. I moved all these files to the `common` folder inside the
new plugin and adjusted the imports in the profiling plugin.

<img width="1032" alt="Screenshot 2023-08-31 at 09 29 27"
src="287bd28e-b834-45e0-8042-576d1fcff6cd">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-01 09:09:41 +01:00
..
advanced [DOCS] Update GitHub links in dev docs (#164503) 2023-08-29 14:43:41 -04:00
architecture [DOCS] Update GitHub links in dev docs (#164503) 2023-08-29 14:43:41 -04:00
best-practices [DOCS] Update GitHub links in dev docs (#164503) 2023-08-29 14:43:41 -04:00
contributing [DOCS] Update GitHub links in dev docs (#164503) 2023-08-29 14:43:41 -04:00
getting-started [DOCS] Update GitHub links in dev docs (#164503) 2023-08-29 14:43:41 -04:00
images docs: interpreting ci failures (#153549) 2023-03-24 17:27:11 +01:00
plugin [DOCS] Update GitHub links in dev docs (#164503) 2023-08-29 14:43:41 -04:00
index.asciidoc Add more details on developer documentation (#126674) 2022-03-03 11:44:05 -07:00
plugin-list.asciidoc [Profiling] Profiling data access plugin (#165198) 2023-09-01 09:09:41 +01:00
telemetry.asciidoc [dev/cli/timings] report on time to dev server listening (#95120) 2021-03-24 18:45:24 -04:00