grafana/public/app/features/datasources
Marcus Andersson b804b2f073
Plugins: Added hook to make it easier to track interactions in plugins (#56126)
* first stab at context away plugin tracking.

* adding a plugin context and a hook to get hold of a tracker that always appends the plugin context information.

* wip

* improved the code a bit.

* wip

* Fixed type errors.

* added datasource_uid to data sources.

* fixed error message when trying to use hook outside of context.

* small refactoring according to feedback.

* using the correct provider for data source context.

* check not needed.

* enforcing the interaction name to start with grafana_plugin_

* exposing guards for the other context type.

* added structure for writing reporter hook tests.

* added some more tests.

* added tests.

* reverted back to inheritance between context types.

* adding mock for getDataSourceSrv
2022-11-02 16:57:57 +01:00
..
__mocks__ refactor: rename Data Connections to Connections (#56353) 2022-10-05 09:56:58 +02:00
components Plugins: Added hook to make it easier to track interactions in plugins (#56126) 2022-11-02 16:57:57 +01:00
pages Plugins: Added hook to make it easier to track interactions in plugins (#56126) 2022-11-02 16:57:57 +01:00
state Profiling: Add Phlare and Parca datasources (#57809) 2022-10-28 13:33:37 +02:00
api.test.ts DataSources: refactor datasource pages to be reusable (#51874) 2022-07-20 09:25:09 +02:00
api.ts DataSources: refactor datasource pages to be reusable (#51874) 2022-07-20 09:25:09 +02:00
constants.ts Data Connections: Add data sources (#52436) 2022-07-25 14:29:21 +02:00
tracking.ts Datasource Config Editor: Add event-based funnel for measuring CVR (#55105) 2022-10-24 11:09:26 +02:00
types.ts Data Connections: Add data sources (#52436) 2022-07-25 14:29:21 +02:00
utils.test.ts DataSources: refactor datasource pages to be reusable (#51874) 2022-07-20 09:25:09 +02:00
utils.ts DataSources: refactor datasource pages to be reusable (#51874) 2022-07-20 09:25:09 +02:00