FrontendService: Add tracing to frontend service (#107236)

* FrontendService: Add tracing to frontend service

* wire gen

* fix test
This commit is contained in:
Josh Hunt
2025-07-09 19:21:31 +01:00
committed by GitHub
parent 9aaaa87bcf
commit 37bfea8685
6 changed files with 26 additions and 2 deletions
+2
View File
@@ -19,6 +19,7 @@ import (
"github.com/grafana/grafana/pkg/api"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/infra/tracing"
"github.com/grafana/grafana/pkg/modules"
"github.com/grafana/grafana/pkg/services/authz"
"github.com/grafana/grafana/pkg/services/featuremgmt"
@@ -39,6 +40,7 @@ func NewModule(opts Options,
indexMetrics *resource.BleveIndexMetrics,
reg prometheus.Registerer,
promGatherer prometheus.Gatherer,
tracer tracing.Tracer, // Ensures tracing is initialized
license licensing.Licensing,
) (*ModuleServer, error) {
s, err := newModuleServer(opts, apiOpts, features, cfg, storageMetrics, indexMetrics, reg, promGatherer, license)