grafana/pkg/infra
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
..
appcontext K8s: Add dashboard service (requires dev mode) (#78565) 2024-01-11 01:20:30 +02:00
db Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
filestorage Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
fs Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
httpclient AuthZ: add headers for IP range AC checks for data source proxy requests (#81662) 2024-03-06 12:40:48 +00:00
kvstore Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
localcache Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
log Logging: Add WithContextualAttributes to pass log params based on the given context (#74428) 2023-09-07 13:13:34 +02:00
metrics CloudWatch: Remove references to pkg/infra/metrics (#81744) 2024-02-06 21:21:55 +02:00
network Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
process PluginsCatalog: adding error information about disabled plugins. (#39171) 2021-09-20 09:08:00 +02:00
remotecache Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
serverlock Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
slugify Slug: Combine various slugify fixes for special character handling (#73164) 2023-08-10 16:12:50 -04:00
tracing Chore: Update otel deps (#78069) 2023-11-14 14:14:15 +01:00
usagestats UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00
x/persistentcollection Chore: Persistent collection (#56074) 2022-09-30 21:34:44 +04:00