Skip to content

Feature/eckit 653 metrics list - #247

Merged
Ozaq merged 1 commit into
developfrom
feature/ECKIT-653-metricsList
Jan 27, 2026
Merged

Ozaq merged 1 commit into
developfrom
feature/ECKIT-653-metricsList

Conversation

@danovaro

@danovaro danovaro commented Jan 23, 2026 •

Copy link
Copy Markdown
Member

Description

add the ability to create groups of metrics
(requested in mars-server to list all the files in which a big layout is subdivided)

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

🌦️ >> Documentation << 🌦️
https://sites.ecmwf.int/docs/dev-section/eckit/pull-requests/PR-247

@danovaro
danovaro requested review from Ozaq and simondsmart January 23, 2026 08:18
@codecov-commenter

codecov-commenter commented Jan 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.22%. Comparing base (c6adb69) to head (8d6f0ec).

Files with missing lines Patch % Lines
src/eckit/runtime/Metrics.cc 77.63% 36 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #247      +/-   ##
===========================================
+ Coverage    65.86%   66.22%   +0.36%     
===========================================
  Files         1129     1131       +2     
  Lines        57670    57959     +289     
  Branches      4364     4394      +30     
===========================================
+ Hits         37985    38386     +401     
+ Misses       19685    19573     -112     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Ozaq Ozaq left a comment

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.

Some minor change request. Please provide some documentation.

Comment thread tests/runtime/test_metrics.cc Resolved
Comment thread src/eckit/runtime/Metrics.cc Resolved
Comment thread src/eckit/runtime/Metrics.cc Resolved
Comment thread src/eckit/runtime/Metrics.cc Resolved
Comment thread tests/runtime/test_metrics.cc Outdated
Comment on lines +159 to +165
{
eckit::MetricsGroup grp("group");
Metrics::set("int", 1);
eckit::MetricsGroupItem gi;
Metrics::set("int", 2);
}
expect(",\"group\":[{\"int\":1},{\"int\":2}]}", metrics);

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.

Looking at this; Does this mean a group contains an implicit GroupItem?

Comment on lines +90 to +102
class MetricsGroup {
public:

MetricsGroup(const std::string& prefix);
~MetricsGroup();
};

class MetricsGroupItem {
public:

MetricsGroupItem();
~MetricsGroupItem();
};

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.

Can you add a bit of documentation to this? Its not immediately clear how this is supposed to work

@Ozaq
Ozaq force-pushed the feature/ECKIT-653-metricsList branch from 759921c to 8d6f0ec Compare January 27, 2026 09:07
@Ozaq
Ozaq merged commit 7787a41 into develop Jan 27, 2026
259 of 268 checks passed
@Ozaq
Ozaq deleted the feature/ECKIT-653-metricsList branch January 27, 2026 13: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.

3 participants