@@ -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