grafana/pkg/infra/usagestats/statscollector
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
..
concurrent_users_test.go Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
concurrent_users.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
prometheus_flavor_test.go Chore: Fix timeout issues when gathering prometheus datasource stats (#74618) 2023-11-29 16:01:54 -05:00
prometheus_flavor.go Chore: Fix timeout issues when gathering prometheus datasource stats (#74618) 2023-11-29 16:01:54 -05:00
service_test.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