Skip to content

Commit b9d62b2

Browse files
committed
reduce options
Signed-off-by: Sandor Szücs <[email protected]>
1 parent c593180 commit b9d62b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

proxy/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ func (p *Proxy) writeTraceIfTooSlow(ctx *context) {
897897
p.log.Errorf("Failed to get successful response from %s: (%d) %s", p.flightRecorderURL.String(), rsp.StatusCode, rsp.Status)
898898
}
899899
default:
900-
p.log.Errorf("Failed to write trace, unknown FlightRecorderURL %q", p.flightRecorderURL.Scheme)
900+
p.log.Errorf("Failed to write trace, unknown FlightRecorderURL scheme %q", p.flightRecorderURL.Scheme)
901901
}
902902
}
903903
}

skipper.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,6 @@ type Options struct {
462462
// MemProfileRate calls runtime.SetMemProfileRate(MemProfileRate) if non zero value, deactivate with <0
463463
MemProfileRate int
464464

465-
// EnableFlightRecorder enables trace.FlightRecorder https://pkg.go.dev/golang.org/x/exp/trace#FlightRecorder to support Go tool trace.
466-
EnableFlightRecorder bool
467-
468465
// FlightRecorderSizeBytes set size of the FlightRecorder https://pkg.go.dev/golang.org/x/exp/trace#FlightRecorder.SetSize
469466
FlightRecorderSize int
470467

@@ -474,7 +471,10 @@ type Options struct {
474471
// FlightRecorderTargetURL is the target to write the trace
475472
// to. Supported targets are http URL and file URL. Skipper
476473
// will try to upload the trace data by an http PUT request to
477-
// this http URL. request
474+
// this http URL. This is required to set if you want to have
475+
// trace.FlightRecorder
476+
// https://pkg.go.dev/golang.org/x/exp/trace#FlightRecorder
477+
// enabled to support Go tool trace.
478478
FlightRecorderTargetURL string
479479

480480
// Flag that enables reporting of the Go garbage collector statistics exported in debug.GCStats
@@ -2048,7 +2048,7 @@ func run(o Options, sig chan os.Signal, idleConnsCH chan struct{}) error {
20482048
fr = nil
20492049
}
20502050
}
2051-
log.Infof("FlightRecorder enabled %v: %v", o.EnableFlightRecorder, fr)
2051+
log.Infof("FlightRecorder: %v", fr)
20522052

20532053
proxyFlags := proxy.Flags(o.ProxyOptions) | o.ProxyFlags
20542054
proxyParams := proxy.Params{

0 commit comments

Comments
 (0)