grafana/pkg/plugins/config/tracing.go
Will Browne bff9f4c890
Plugins: Move config factory to pluginsintegration package (#65716)
* move config to pluginsintegration package

* change to all plugin toggle

* fixes

* fixes

* fix lerna

* fix test
2023-04-05 14:40:08 +02:00

18 lines
475 B
Go

package config
type Tracing struct {
OpenTelemetry OpenTelemetryCfg
}
// OpenTelemetryCfg contains the OpenTelemetry address and propagation config values.
// This is used to export the OpenTelemetry (OTLP) config without exposing the whole *setting.Cfg.
type OpenTelemetryCfg struct {
Address string
Propagation string
}
// IsEnabled returns true if OTLP tracing is enabled (address set)
func (t Tracing) IsEnabled() bool {
return t.OpenTelemetry.Address != ""
}