|
|
|
|
@ -5,7 +5,9 @@ import ( |
|
|
|
|
|
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend" |
|
|
|
|
sdklog "github.com/grafana/grafana-plugin-sdk-go/backend/log" |
|
|
|
|
sdktracing "github.com/grafana/grafana-plugin-sdk-go/backend/tracing" |
|
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/infra/tracing" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/backendplugin" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/log" |
|
|
|
|
@ -81,10 +83,14 @@ func NewRegistry(store map[string]backendplugin.PluginFactoryFunc) *Registry { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func ProvideCoreRegistry(am *azuremonitor.Service, cw *cloudwatch.CloudWatchService, cm *cloudmonitoring.Service, |
|
|
|
|
func ProvideCoreRegistry(tracer tracing.Tracer, am *azuremonitor.Service, cw *cloudwatch.CloudWatchService, cm *cloudmonitoring.Service, |
|
|
|
|
es *elasticsearch.Service, grap *graphite.Service, idb *influxdb.Service, lk *loki.Service, otsdb *opentsdb.Service, |
|
|
|
|
pr *prometheus.Service, t *tempo.Service, td *testdatasource.Service, pg *postgres.Service, my *mysql.Service, |
|
|
|
|
ms *mssql.Service, graf *grafanads.Service, pyroscope *pyroscope.Service, parca *parca.Service) *Registry { |
|
|
|
|
if otelTracer := tracer.OtelTracer(); otelTracer != nil { |
|
|
|
|
sdktracing.InitDefaultTracer(otelTracer) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return NewRegistry(map[string]backendplugin.PluginFactoryFunc{ |
|
|
|
|
CloudWatch: asBackendPlugin(cw.Executor), |
|
|
|
|
CloudMonitoring: asBackendPlugin(cm), |
|
|
|
|
|