Source File
config.go
Belonging Package
go.pact.im/x/traces/_example
package mainimport// Config holds the service configuration.type Config struct {HTTPAddress string `json:"httpAddress"`GRPCAddress string `json:"grpcAddress"`AuditURL string `json:"auditURL"`DatabaseDSN string `json:"databaseDSN"`Tracing TracingConfig `json:"tracing"`}// TracingConfig holds OTLP/HTTP trace pipeline settings.type TracingConfig struct {// Endpoint is the OTLP/HTTP traces URL. When empty, tracing is disabled.Endpoint string `json:"endpoint"`Headers map[string]string `json:"headers"`Timeout time.Duration `json:"timeout"`ServiceName string `json:"serviceName"`SampleRatio float64 `json:"sampleRatio"`FlushInterval time.Duration `json:"flushInterval"`MaxBatch int `json:"maxBatch"`MaxExports int `json:"maxExports"`}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)