Skip to content

Conversation

@markwylde
Copy link
Owner

This enhancement provides more detailed insights into query operations, making it easier to:

  • Debug complex queries
  • Monitor query performance
  • Analyze query patterns and results

This is a backward-compatible enhancement to the existing statistics system.

Changes

  • Added additional metadata to query operation statistics events
  • Now tracking the actual query object used and the number of results returned
  • Added comprehensive test coverage for the new statistics fields

Details

The PR enhances the statistics tracking for query operations by including:

  • The actual query object used (query field)
  • The number of results returned (queryResultCount field)

Types

Updated StatsEvent type to include new optional fields:

  • query?: object
  • queryResultCount?: number

@markwylde markwylde merged commit 7d8496a into main Dec 28, 2024
3 checks passed
@markwylde markwylde deleted the query-stats branch December 28, 2024 21:41
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