Documentation
¶
Index ¶
Constants ¶
View Source
const (
JaegerType = "jaeger"
OtelType = "otel"
)
Variables ¶
This section is empty.
Functions ¶
func SetupTracing ¶
func SetupTracing(ctx context.Context, name string, c Config) (func(context.Context) error, error)
Types ¶
type Config ¶
type Config struct {
Type string `yaml:"type" json:"type"`
Otel Otel `yaml:"otel" json:"otel"`
}
func (*Config) RegisterFlags ¶
func (c *Config) RegisterFlags(f *flag.FlagSet)
RegisterFlags registers flag.
type Otel ¶
type Otel struct {
OltpEndpoint string `yaml:"oltp_endpoint" json:"oltp_endpoint" doc:"hidden"`
OtlpEndpoint string `yaml:"otlp_endpoint" json:"otlp_endpoint"`
ExporterType string `yaml:"exporter_type" json:"exporter_type"`
SampleRatio float64 `yaml:"sample_ratio" json:"sample_ratio"`
TLSEnabled bool `yaml:"tls_enabled"`
TLS tls.ClientConfig `yaml:"tls"`
ExtraDetectors []resource.Detector `yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.