Skip to content

feat(api-gateway): Always include usedPreAggregations in Load Request Success logs#10310

Open
Emile-Filteau wants to merge 1 commit intocube-js:masterfrom
Emile-Filteau:feat/always-include-used-preaggregations-logs
Open

feat(api-gateway): Always include usedPreAggregations in Load Request Success logs#10310
Emile-Filteau wants to merge 1 commit intocube-js:masterfrom
Emile-Filteau:feat/always-include-used-preaggregations-logs

Conversation

@Emile-Filteau
Copy link
Contributor

@Emile-Filteau Emile-Filteau commented Jan 14, 2026

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves
Closes #10309

Description of Changes Made (if issue reference is not provided)

Moving the usedPreAggregations entry of the response object in the api gateway to always be present, instead of being filtered on "devMode" and playground request only.

This allows the Load Request Success log to properly include queriesWithPreAggregations. This will help with using cubejs logs when self hosting to see which requests goes through a pre-aggregation or not.

@github-actions github-actions bot added javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members. labels Jan 14, 2026
@Emile-Filteau Emile-Filteau marked this pull request as ready for review January 14, 2026 16:56
@Emile-Filteau Emile-Filteau requested a review from a team as a code owner January 14, 2026 16:56
@Emile-Filteau
Copy link
Contributor Author

@igorlukanin Would it be possible to get some eyes on this? It would help our team greatly to be able to see which queries uses pre-aggregations and which one doesn't from our Cube Core production logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log queriesWithPreAggregations in production

1 participant