Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Differentiation between metric and resource attributes (#984)" #999

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

mariomac
Copy link
Contributor

@mariomac mariomac commented Jul 5, 2024

This reverts commit 84af0d1, as it was not a good approach.

PR #984 allowed specifying resource attributes per metric, but actually the same resource owns multiple metrics, so we must not let users to define different resource attributes depending on the exposed metric, as the result would be unpredictable.

In a future PR, the user will be able to define resource attributes per metric type: application, process, and network.

@mariomac mariomac requested review from grcevski and marctc as code owners July 5, 2024 12:54
@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.84%. Comparing base (31e98da) to head (67da14d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #999      +/-   ##
==========================================
+ Coverage   80.75%   80.84%   +0.09%     
==========================================
  Files         134      134              
  Lines       10733    10695      -38     
==========================================
- Hits         8667     8646      -21     
+ Misses       1559     1542      -17     
  Partials      507      507              
Flag Coverage Δ
integration-test 55.87% <93.33%> (-0.11%) ⬇️
k8s-integration-test 59.21% <96.00%> (-0.02%) ⬇️
oats-test 36.40% <76.00%> (-0.03%) ⬇️
unittests 50.86% <98.66%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM!

@mariomac mariomac merged commit 3938eb2 into grafana:main Jul 6, 2024
6 checks passed
@mariomac mariomac deleted the revert-984 branch July 6, 2024 08:20
mattdurham pushed a commit to mattdurham/beyla that referenced this pull request Jan 22, 2025
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