chatdesk-ui/auth_v2.169.0/internal/conf/tracing.go

34 lines
925 B
Go

package conf
type TracingExporter = string
const (
OpenTelemetryTracing TracingExporter = "opentelemetry"
)
type TracingConfig struct {
Enabled bool
Exporter TracingExporter `default:"opentelemetry"`
// ExporterProtocol is the OTEL_EXPORTER_OTLP_PROTOCOL env variable,
// only available when exporter is opentelemetry. See:
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md
ExporterProtocol string `default:"http/protobuf" envconfig:"OTEL_EXPORTER_OTLP_PROTOCOL"`
// Host is the host of the OpenTracing collector.
Host string
// Port is the port of the OpenTracing collector.
Port string
// ServiceName is the service name to use with OpenTracing.
ServiceName string `default:"gotrue" split_words:"true"`
// Tags are the tags to associate with OpenTracing.
Tags map[string]string
}
func (tc *TracingConfig) Validate() error {
return nil
}