Rename the correlation field from correlation_id to x-gitlab-correlation-id

This commit is contained in:
Andrew Newdigate 2018-12-07 23:57:56 +02:00 committed by Stan Hu
parent a27ba8edfa
commit 6c426c0e39

View file

@ -193,7 +193,7 @@ module Gitlab
feature = feature_stack && feature_stack[0] feature = feature_stack && feature_stack[0]
metadata['call_site'] = feature.to_s if feature metadata['call_site'] = feature.to_s if feature
metadata['gitaly-servers'] = address_metadata(remote_storage) if remote_storage metadata['gitaly-servers'] = address_metadata(remote_storage) if remote_storage
metadata['correlation_id'] = Gitlab::CorrelationId.current_id if Gitlab::CorrelationId.current_id metadata['x-gitlab-correlation-id'] = Gitlab::CorrelationId.current_id if Gitlab::CorrelationId.current_id
metadata.merge!(server_feature_flags) metadata.merge!(server_feature_flags)