Skip to content

Cf ray improvements#74

Merged
novalisdenahi merged 5 commits intomasterfrom
cf-ray-improvements
Apr 16, 2026
Merged

Cf ray improvements#74
novalisdenahi merged 5 commits intomasterfrom
cf-ray-improvements

Conversation

@novalisdenahi
Copy link
Copy Markdown
Contributor

Describe the purpose of your pull request

  • 1102 and 1103 log events logs cfRayId if present.
  • cfRayId added to failed response if present.
  • Bump version to 9.4.5

Related issues (only if applicable)

How to test? (only if applicable)

  • What part of the application was affected by the changes? What should be tested?

Security (only if applicable)

  • Describe any potential risks that could affect the component in terms of security.

Requirement checklist (only if applicable)

  • I have covered the applied changes with automated tests.
  • I have executed the full automated test set against my changes.
  • I have validated my changes against all supported platform versions.
  • I have read and accepted the contribution agreement.

@novalisdenahi novalisdenahi requested a review from a team as a code owner April 14, 2026 10:06
Comment thread src/main/java/com/configcat/ConfigFetcher.java
public static FormattableLogMessage getFetchFailedDueToRequestTimeout(final Integer connectTimeoutMillis, final Integer readTimeoutMillis, final Integer writeTimeoutMillis) {
public static FormattableLogMessage getFetchFailedDueToRequestTimeout(final Integer connectTimeoutMillis, final Integer readTimeoutMillis, final Integer writeTimeoutMillis, final String cfRayId) {
if (cfRayId != null) {
return new FormattableLogMessage("Request timed out while trying to fetch config JSON. Timeout values: [connect: %dms, read: %dms, write: %dms] %s", connectTimeoutMillis, readTimeoutMillis, writeTimeoutMillis, ConfigCatLogMessages.getCFRayIdPostFix(cfRayId));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary extra space.

Suggested change
return new FormattableLogMessage("Request timed out while trying to fetch config JSON. Timeout values: [connect: %dms, read: %dms, write: %dms] %s", connectTimeoutMillis, readTimeoutMillis, writeTimeoutMillis, ConfigCatLogMessages.getCFRayIdPostFix(cfRayId));
return new FormattableLogMessage("Request timed out while trying to fetch config JSON. Timeout values: [connect: %dms, read: %dms, write: %dms] %s", connectTimeoutMillis, readTimeoutMillis, writeTimeoutMillis, ConfigCatLogMessages.getCFRayIdPostFix(cfRayId));

@sonarqubecloud
Copy link
Copy Markdown

@novalisdenahi novalisdenahi merged commit c927bbe into master Apr 16, 2026
10 checks passed
@novalisdenahi novalisdenahi deleted the cf-ray-improvements branch April 16, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants