From 766b67179b0b9447ff05531d937e2cdda8f4cc8a Mon Sep 17 00:00:00 2001 From: Kassio Borges Date: Fri, 17 Feb 2023 17:08:42 +0000 Subject: Propagate correlation id by default Related to: https://gitlab.com/gitlab-org/gitlab-pages/-/issues/827#note_1271012143 Changelog: changed --- internal/config/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/config') diff --git a/internal/config/flags.go b/internal/config/flags.go index 4b8ee7a0..798e4a83 100644 --- a/internal/config/flags.go +++ b/internal/config/flags.go @@ -44,7 +44,7 @@ var ( metricsKey = flag.String("metrics-key", "", "The default path to file private key to serve metrics requests") sentryDSN = flag.String("sentry-dsn", "", "The address for sending sentry crash reporting to") sentryEnvironment = flag.String("sentry-environment", "", "The environment for sentry crash reporting") - propagateCorrelationID = flag.Bool("propagate-correlation-id", false, "Reuse existing Correlation-ID from the incoming request header `X-Request-ID` if present") + propagateCorrelationID = flag.Bool("propagate-correlation-id", true, "Reuse existing Correlation-ID from the incoming request header `X-Request-ID` if present") serverShutdownTimeout = flag.Duration("server-shutdown-timeout", 30*time.Second, "GitLab Pages server shutdown timeout (default: 30s)") logFormat = flag.String("log-format", "json", "The log output format: 'text' or 'json'") logVerbose = flag.Bool("log-verbose", false, "Verbose logging") -- cgit v1.2.3