mirror of
https://github.com/caddyserver/caddy.git
synced 2025-11-12 09:36:53 -05:00
fix: shorten config
This commit is contained in:
parent
3d93ce464c
commit
f58b6fbca2
@ -26,7 +26,7 @@ type Tracing struct {
|
||||
// SpanName is a span name. It should follow the naming guidelines here:
|
||||
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#span
|
||||
SpanName string `json:"span"`
|
||||
InjectServerTimingHeader bool `json:"injectServerTimingHeader,omitempty"`
|
||||
InjectServerTimingHeader bool `json:"server_timing,omitempty"`
|
||||
|
||||
// otel implements opentelemetry related logic.
|
||||
otel openTelemetryWrapper
|
||||
@ -97,7 +97,7 @@ func (ot *Tracing) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
||||
|
||||
for d.NextBlock(0) {
|
||||
switch d.Val() {
|
||||
case "injectServerTimingHeader":
|
||||
case "server_timing":
|
||||
if d.NextArg() {
|
||||
ot.InjectServerTimingHeader = true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user