grafana/pkg/services/supportbundles/supportbundlesimpl
Jo 108202f96c
UsageStats: Separate context and threads for usage stats (#83963)
* separate context and threads for usage stats

* use constants

* ignore original context

* fix runMetricsFunc

* fix collector registration

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* change background ctx

* fix test randomness

* Add traces to support bundle collector

* Remove unecessay span

* Add trace to usagestats api

* Close spans

* Mv trace to bundle

* Change span name

* use parent context

* fix runtime declare of stats

* Fix pointer dereference problem on usage stat func

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: jguer <joao.guerreiro@grafana.com>

* fix broken support bundle tests by tracer

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: gamab <gabriel.mabille@grafana.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-03-11 15:18:42 +01:00
..
api.go RBAC: Remove legacy ac from authorization middleware (#68898) 2023-05-24 09:49:42 +01:00
collectors.go Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
db_collector.go SupportBundles: Fix collector typos and change defaults (#61850) 2023-01-20 16:33:29 +00:00
models.go SupportBundles: Add config enablement (#61776) 2023-01-20 08:59:15 +00:00
service_bundle_test.go UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00
service_bundle.go UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00
service.go UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00
store.go Auth: Move Support Bundle service to SignedInUser interface (#72723) 2023-08-03 10:09:55 +02:00