diff --git a/correlation/inbound_http.go b/correlation/inbound_http.go index 5090f1f8577f9dc5e451c5159ba9e8a4f7376c77..f85382839feb29be293fe727a50f218d293da7ce 100644 --- a/correlation/inbound_http.go +++ b/correlation/inbound_http.go @@ -6,7 +6,7 @@ import ( // InjectCorrelationID is an HTTP middleware to generate an Correlation-ID for the incoming request, // or extract the existing Correlation-ID from the incoming request. By default, any upstream Correlation-ID, -// passed in via the `X-Request-ID` header will be ignored. To enable this behaviour, the `WithPropagation` +// passed in via the `X-Correlation-ID` header will be ignored. To enable this behaviour, the `WithPropagation` // option should be passed into the options. // Whether the Correlation-ID is generated or propagated, once inside this handler the request context // will have a Correlation-ID associated with it. diff --git a/correlation/outbound_http.go b/correlation/outbound_http.go index 0345a37be53e47072aded58467461f9ce998b243..17870d565c566bf9881565c950a5d7d485b12a7c 100644 --- a/correlation/outbound_http.go +++ b/correlation/outbound_http.go @@ -4,7 +4,7 @@ import ( "net/http" ) -const propagationHeader = "X-Request-ID" +const propagationHeader = "X-Correlation-ID" // injectRequest will pass the CorrelationId through to a downstream http request // for propagation @@ -29,7 +29,7 @@ func (c instrumentedRoundTripper) RoundTrip(req *http.Request) (res *http.Respon // transport. // // If will extract the current Correlation-ID from the request context and pass this via -// the X-Request-ID request header to downstream services. +// the X-Correlation-ID request header to downstream services. func NewInstrumentedRoundTripper(delegate http.RoundTripper, opts ...InstrumentedRoundTripperOption) http.RoundTripper { // Currently we don't use any of the options available applyInstrumentedRoundTripperOptions(opts)