Skip to content

Conversation

@xiaoxichen
Copy link
Contributor

This adds COUNTER_VALUE, GAUGE_VALUE, and HISTOGRAM_VALUE macros that allow reading metric values directly as native types (int64_t for counters/gauges, HistogramStatistics struct for histograms) without going through JSON serialization.

Also made gather_result() public to allow custom metric collection without JSON if needed.

Tests added to wrapper_test.cpp verify the new direct access methods work correctly across all metric types.

@xiaoxichen xiaoxichen requested a review from szmyd January 20, 2026 05:33
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 63.82979% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.56%. Comparing base (370c772) to head (874e540).
⚠️ Report is 84 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #293       +/-   ##
===========================================
- Coverage   64.29%   50.56%   -13.74%     
===========================================
  Files          72       63        -9     
  Lines        4406     4080      -326     
  Branches      555     1771     +1216     
===========================================
- Hits         2833     2063      -770     
+ Misses       1327      864      -463     
- Partials      246     1153      +907     
Components Coverage Δ
AuthManager 55.55% <ø> (-22.23%) ⬇️
Cache 31.52% <54.12%> (+1.58%) ⬆️
FDS 61.03% <26.31%> (-10.09%) ⬇️
FileWatcher 37.60% <20.00%> (-18.65%) ⬇️
Flip ∅ <ø> (∅)
gRPC 56.59% <46.87%> (-20.46%) ⬇️
Logging 27.65% <22.72%> (-2.53%) ⬇️
Metrics 58.77% <63.82%> (-21.43%) ⬇️
Options 25.00% <ø> (-75.00%) ⬇️
Setting 29.62% <ø> (-27.17%) ⬇️
StatusObject 37.16% <ø> (-36.67%) ⬇️
Utility 60.98% <100.00%> (-21.74%) ⬇️
Version 36.00% <ø> (-59.84%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xiaoxichen xiaoxichen enabled auto-merge (rebase) January 20, 2026 06:25
@xiaoxichen xiaoxichen force-pushed the read_metrics branch 3 times, most recently from 95939d0 to e165e7a Compare January 20, 2026 09:28
This adds COUNTER_VALUE, GAUGE_VALUE, and HISTOGRAM_VALUE macros that
allow reading metric values directly as native types (int64_t for
counters/gauges, HistogramStatistics struct for histograms) without
going through JSON serialization.

Also made gather_result() public to allow custom metric collection
without JSON if needed.

Tests added to farm_test.cpp verify the new direct access methods
work correctly across all metric types.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
conanfile.py Outdated
class SISLConan(ConanFile):
name = "sisl"
version = "13.1.1"
version = "13.1.2"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we bump the MINOR since we are extending the API not just patching the implementation? Should be backwards compat from what I can tell.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack, done

@xiaoxichen xiaoxichen disabled auto-merge January 22, 2026 00:25
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.

3 participants