@@ -69,55 +69,51 @@ type Config struct {
69
69
CompressEncodings * listFlag `yaml:"compress-encodings"`
70
70
71
71
// logging, metrics, profiling, tracing:
72
- EnablePrometheusMetrics bool `yaml:"enable-prometheus-metrics"`
73
- OpenTracing string `yaml:"opentracing"`
74
- OpenTracingInitialSpan string `yaml:"opentracing-initial-span"`
75
- OpenTracingExcludedProxyTags string `yaml:"opentracing-excluded-proxy-tags"`
76
- OpenTracingDisableFilterSpans bool `yaml:"opentracing-disable-filter-spans"`
77
- OpentracingLogFilterLifecycleEvents bool `yaml:"opentracing-log-filter-lifecycle-events"`
78
- OpentracingLogStreamEvents bool `yaml:"opentracing-log-stream-events"`
79
- OpentracingBackendNameTag bool `yaml:"opentracing-backend-name-tag"`
80
- MetricsListener string `yaml:"metrics-listener"`
81
- MetricsPrefix string `yaml:"metrics-prefix"`
82
- EnableProfile bool `yaml:"enable-profile"`
83
- BlockProfileRate int `yaml:"block-profile-rate"`
84
- MutexProfileFraction int `yaml:"mutex-profile-fraction"`
85
- MemProfileRate int `yaml:"memory-profile-rate"`
86
- EnableFlightRecorder bool `yaml:"enable-flight-recorder"`
87
- FlightRecorderSize int `yaml:"flight-recorder-size"`
88
- FlightRecorderPeriod time.Duration `yaml:"flight-recorder-period"`
89
- FlightRecorderProxyTookTooLong time.Duration `yaml:"flight-recorder-proxy-took-too-long"`
90
- FlightRecorderTargetURL string `yaml:"flight-recorder-target-url"`
91
- DebugGcMetrics bool `yaml:"debug-gc-metrics"`
92
- RuntimeMetrics bool `yaml:"runtime-metrics"`
93
- ServeRouteMetrics bool `yaml:"serve-route-metrics"`
94
- ServeRouteCounter bool `yaml:"serve-route-counter"`
95
- ServeHostMetrics bool `yaml:"serve-host-metrics"`
96
- ServeHostCounter bool `yaml:"serve-host-counter"`
97
- ServeMethodMetric bool `yaml:"serve-method-metric"`
98
- ServeStatusCodeMetric bool `yaml:"serve-status-code-metric"`
99
- BackendHostMetrics bool `yaml:"backend-host-metrics"`
100
- AllFiltersMetrics bool `yaml:"all-filters-metrics"`
101
- CombinedResponseMetrics bool `yaml:"combined-response-metrics"`
102
- RouteResponseMetrics bool `yaml:"route-response-metrics"`
103
- RouteBackendErrorCounters bool `yaml:"route-backend-error-counters"`
104
- RouteStreamErrorCounters bool `yaml:"route-stream-error-counters"`
105
- RouteBackendMetrics bool `yaml:"route-backend-metrics"`
106
- RouteCreationMetrics bool `yaml:"route-creation-metrics"`
107
- MetricsUseExpDecaySample bool `yaml:"metrics-exp-decay-sample"`
108
- HistogramMetricBucketsString string `yaml:"histogram-metric-buckets"`
109
- HistogramMetricBuckets []float64 `yaml:"-"`
110
- DisableMetricsCompat bool `yaml:"disable-metrics-compat"`
111
- ApplicationLog string `yaml:"application-log"`
112
- ApplicationLogLevel log.Level `yaml:"-"`
113
- ApplicationLogLevelString string `yaml:"application-log-level"`
114
- ApplicationLogPrefix string `yaml:"application-log-prefix"`
115
- ApplicationLogJSONEnabled bool `yaml:"application-log-json-enabled"`
116
- AccessLog string `yaml:"access-log"`
117
- AccessLogDisabled bool `yaml:"access-log-disabled"`
118
- AccessLogJSONEnabled bool `yaml:"access-log-json-enabled"`
119
- AccessLogStripQuery bool `yaml:"access-log-strip-query"`
120
- SuppressRouteUpdateLogs bool `yaml:"suppress-route-update-logs"`
72
+ EnablePrometheusMetrics bool `yaml:"enable-prometheus-metrics"`
73
+ OpenTracing string `yaml:"opentracing"`
74
+ OpenTracingInitialSpan string `yaml:"opentracing-initial-span"`
75
+ OpenTracingExcludedProxyTags string `yaml:"opentracing-excluded-proxy-tags"`
76
+ OpenTracingDisableFilterSpans bool `yaml:"opentracing-disable-filter-spans"`
77
+ OpentracingLogFilterLifecycleEvents bool `yaml:"opentracing-log-filter-lifecycle-events"`
78
+ OpentracingLogStreamEvents bool `yaml:"opentracing-log-stream-events"`
79
+ OpentracingBackendNameTag bool `yaml:"opentracing-backend-name-tag"`
80
+ MetricsListener string `yaml:"metrics-listener"`
81
+ MetricsPrefix string `yaml:"metrics-prefix"`
82
+ EnableProfile bool `yaml:"enable-profile"`
83
+ BlockProfileRate int `yaml:"block-profile-rate"`
84
+ MutexProfileFraction int `yaml:"mutex-profile-fraction"`
85
+ MemProfileRate int `yaml:"memory-profile-rate"`
86
+ FlightRecorderTargetURL string `yaml:"flight-recorder-target-url"`
87
+ DebugGcMetrics bool `yaml:"debug-gc-metrics"`
88
+ RuntimeMetrics bool `yaml:"runtime-metrics"`
89
+ ServeRouteMetrics bool `yaml:"serve-route-metrics"`
90
+ ServeRouteCounter bool `yaml:"serve-route-counter"`
91
+ ServeHostMetrics bool `yaml:"serve-host-metrics"`
92
+ ServeHostCounter bool `yaml:"serve-host-counter"`
93
+ ServeMethodMetric bool `yaml:"serve-method-metric"`
94
+ ServeStatusCodeMetric bool `yaml:"serve-status-code-metric"`
95
+ BackendHostMetrics bool `yaml:"backend-host-metrics"`
96
+ AllFiltersMetrics bool `yaml:"all-filters-metrics"`
97
+ CombinedResponseMetrics bool `yaml:"combined-response-metrics"`
98
+ RouteResponseMetrics bool `yaml:"route-response-metrics"`
99
+ RouteBackendErrorCounters bool `yaml:"route-backend-error-counters"`
100
+ RouteStreamErrorCounters bool `yaml:"route-stream-error-counters"`
101
+ RouteBackendMetrics bool `yaml:"route-backend-metrics"`
102
+ RouteCreationMetrics bool `yaml:"route-creation-metrics"`
103
+ MetricsUseExpDecaySample bool `yaml:"metrics-exp-decay-sample"`
104
+ HistogramMetricBucketsString string `yaml:"histogram-metric-buckets"`
105
+ HistogramMetricBuckets []float64 `yaml:"-"`
106
+ DisableMetricsCompat bool `yaml:"disable-metrics-compat"`
107
+ ApplicationLog string `yaml:"application-log"`
108
+ ApplicationLogLevel log.Level `yaml:"-"`
109
+ ApplicationLogLevelString string `yaml:"application-log-level"`
110
+ ApplicationLogPrefix string `yaml:"application-log-prefix"`
111
+ ApplicationLogJSONEnabled bool `yaml:"application-log-json-enabled"`
112
+ AccessLog string `yaml:"access-log"`
113
+ AccessLogDisabled bool `yaml:"access-log-disabled"`
114
+ AccessLogJSONEnabled bool `yaml:"access-log-json-enabled"`
115
+ AccessLogStripQuery bool `yaml:"access-log-strip-query"`
116
+ SuppressRouteUpdateLogs bool `yaml:"suppress-route-update-logs"`
121
117
122
118
// route sources:
123
119
EtcdUrls string `yaml:"etcd-urls"`
@@ -383,10 +379,6 @@ func NewConfig() *Config {
383
379
flag .IntVar (& cfg .BlockProfileRate , "block-profile-rate" , 0 , "block profile sample rate, see runtime.SetBlockProfileRate" )
384
380
flag .IntVar (& cfg .MutexProfileFraction , "mutex-profile-fraction" , 0 , "mutex profile fraction rate, see runtime.SetMutexProfileFraction" )
385
381
flag .IntVar (& cfg .MemProfileRate , "memory-profile-rate" , 0 , "memory profile rate, see runtime.SetMemProfileRate, keeps default 512 kB" )
386
- flag .BoolVar (& cfg .EnableFlightRecorder , "enable-flight-recorder" , false , "enable flightrecorder Go tracer" )
387
- flag .IntVar (& cfg .FlightRecorderSize , "flight-recorder-size" , 0 , "max flight-recorder trace data size" )
388
- flag .DurationVar (& cfg .FlightRecorderPeriod , "flight-recorder-period" , 0 , "sets the approximate time duration that the flight recorder's circular buffer represents." )
389
- flag .DurationVar (& cfg .FlightRecorderProxyTookTooLong , "flight-recorder-proxy-took-too-long" , 0 , "sets the threshold, if proxy took longer than that the flight recorder will write out a trace." )
390
382
flag .StringVar (& cfg .FlightRecorderTargetURL , "flight-recorder-target-url" , "" , "sets the flight recorder target URL that is used to write out the trace to." )
391
383
flag .BoolVar (& cfg .DebugGcMetrics , "debug-gc-metrics" , false , "enables reporting of the Go garbage collector statistics exported in debug.GCStats" )
392
384
flag .BoolVar (& cfg .RuntimeMetrics , "runtime-metrics" , true , "enables reporting of the Go runtime statistics exported in runtime and specifically runtime.MemStats" )
@@ -755,10 +747,6 @@ func (c *Config) ToOptions() skipper.Options {
755
747
EnableProfile : c .EnableProfile ,
756
748
BlockProfileRate : c .BlockProfileRate ,
757
749
MutexProfileFraction : c .MutexProfileFraction ,
758
- EnableFlightRecorder : c .EnableFlightRecorder ,
759
- FlightRecorderSize : c .FlightRecorderSize ,
760
- FlightRecorderPeriod : c .FlightRecorderPeriod ,
761
- FlightRecorderProxyTookTooLong : c .FlightRecorderProxyTookTooLong ,
762
750
FlightRecorderTargetURL : c .FlightRecorderTargetURL ,
763
751
EnableDebugGcMetrics : c .DebugGcMetrics ,
764
752
EnableRuntimeMetrics : c .RuntimeMetrics ,
0 commit comments