1
0
Fork 0

fix: otlp doc + potential panic

This commit is contained in:
Michael 2024-08-29 14:30:05 +02:00 committed by GitHub
parent 6b1a584c2b
commit 2714831a4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -212,6 +212,9 @@ type Tracing struct {
func (t *Tracing) SetDefaults() {
t.ServiceName = "traefik"
t.SampleRate = 1.0
t.OTLP = &opentelemetry.Config{}
t.OTLP.SetDefaults()
}
// Providers contains providers configuration.