You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If it's not provided, or this header is empty, then random requestId will be generated
76
+
RequestIdHeaderstring`yaml:"request_id_header"`
77
+
74
78
// This sets the Origin header value
75
79
corsRegexStringstring`yaml:"cors_origin"`
76
80
@@ -87,6 +91,7 @@ var (
87
91
func (cfg*Config) RegisterFlags(f*flag.FlagSet) {
88
92
f.BoolVar(&cfg.ResponseCompression, "api.response-compression-enabled", false, "Use GZIP compression for API responses. Some endpoints serve large YAML or JSON blobs which can benefit from compression.")
89
93
f.Var(&cfg.HTTPRequestHeadersToLog, "api.http-request-headers-to-log", "Which HTTP Request headers to add to logs")
94
+
f.StringVar(&cfg.RequestIdHeader, "api.request-id-header", "", "HTTP header that can be used as request id")
90
95
f.BoolVar(&cfg.buildInfoEnabled, "api.build-info-enabled", false, "If enabled, build Info API will be served by query frontend or querier.")
91
96
f.StringVar(&cfg.QuerierDefaultCodec, "api.querier-default-codec", "json", "Choose default codec for querier response serialization. Supports 'json' and 'protobuf'.")
0 commit comments