mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:22:35 +08:00
Tracing: Standardize on otel tracing (#75528)
This commit is contained in:

committed by
GitHub

parent
4432c4c75c
commit
e4c1a7a141
@ -87,9 +87,8 @@ func ProvideCoreRegistry(tracer tracing.Tracer, am *azuremonitor.Service, cw *cl
|
||||
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)
|
||||
}
|
||||
// Non-optimal global solution to replace plugin SDK default tracer for core plugins.
|
||||
sdktracing.InitDefaultTracer(tracer)
|
||||
|
||||
return NewRegistry(map[string]backendplugin.PluginFactoryFunc{
|
||||
CloudWatch: asBackendPlugin(cw.Executor),
|
||||
|
Reference in New Issue
Block a user