Correlation ID Generator functionality introduced from the Mule 4.4 runtime version onwards to customize the correlation Id does not work as expected in RTF and CloudHub 2.0 environments.
In RTF and CloudHub 2.0 environments, incoming requests flow through the ingress layer and the ingress component generates a correlation Id if the correlation Id header is not found as part of the incoming request. When the mule runtime engine receives the requests, the Correlation ID Generator functionality generates a correlation Id only when the correlation Id header is not received as an incoming header. If there is a correlation Id in the incoming headers, the runtime engine uses the incoming correlation Id and does not generate new value.
The limitation in RTF and CloudHub 2.0 is that even though the client does not send correlation Id, since ingress is generating a correlation Id and injecting into headers, Correlation ID Generator does not generate new values as expected.
The alternative solution is to wrap all the components after the source scope with 'With CorrelationID Scope' to customize the correlation Id.
001121763

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.