ArcticDB icon indicating copy to clipboard operation
ArcticDB copied to clipboard

Query Stat framework v3

Open phoebusm opened this issue 7 months ago • 0 comments

Reference Issues/PRs

What does this implement or fix?

New query stat implemenation which its schema is static The feature of linking arcticdb API calls to storage operations has been dropped. Now only storage operation stats will be logged. Therefore the schema of the stats is hardcoded and allow the summation of stats is logged, one statical object with numerous atomic ints is enough to do the job. No fancy map nor modification of folly executor.

Any other comments?

Sample output:

{ // Stats
        "SYMBOL_LIST":  // std::array<std::array<OpStats, NUMBER_OF_TASK_TYPES>, NUMBER_OF_KEYS>
         { 
            "storage_ops": {
                "S3_ListObjectsV2": 
                { // OpStats
                    "result_count": 1,
                    "total_time_ms": 34
                }
            }
        }
    }

Checklist

Checklist for code changes...
  • [ ] Have you updated the relevant docstrings, documentation and copyright notice?
  • [ ] Is this contribution tested against all ArcticDB's features?
  • [ ] Do all exceptions introduced raise appropriate error messages?
  • [ ] Are API changes highlighted in the PR description?
  • [ ] Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

phoebusm avatar Apr 08 '25 17:04 phoebusm