mirror of
https://github.com/traefik/traefik
synced 2026-02-03 12:20:33 +00:00
fix: otlp doc + potential panic
This commit is contained in:
@@ -170,7 +170,6 @@ Defines the list of query parameters to not redact.
|
||||
|
||||
```yaml tab="File (YAML)"
|
||||
tracing:
|
||||
otlp:
|
||||
safeQueryParams:
|
||||
- bar
|
||||
- buz
|
||||
@@ -178,10 +177,9 @@ tracing:
|
||||
|
||||
```toml tab="File (TOML)"
|
||||
[tracing]
|
||||
[tracing.otlp]
|
||||
safeQueryParams = ["bar", "buz"]
|
||||
```
|
||||
|
||||
```bash tab="CLI"
|
||||
--tracing.otlp.safeQueryParams=bar,buz
|
||||
--tracing.safeQueryParams=bar,buz
|
||||
```
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user