grafana/pkg/infra/usagestats/service
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
..
accesscontrol.go RBAC: Add permission to get usage report preview (#61570) 2023-01-18 16:07:36 +01:00
api_test.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
api.go UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00
service.go Usage stats: Tune collector execution startup and interval (#72688) 2023-08-03 11:01:44 +03:00
usage_stats_test.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
usage_stats.go UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00