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

[pdata] Rename pmetric.MetricDataPointFlags to pmetric.DataPointFlags #6259

Merged
merged 2 commits into from
Oct 11, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Oct 8, 2022

Following pdata naming rules outlined in #6255, we want to update the struct to have the same name as defined in protobuf package.

Updates #6257

@dmitryax dmitryax requested review from a team and jpkrohling October 8, 2022 00:56
@codecov
Copy link

codecov bot commented Oct 8, 2022

Codecov Report

Base: 92.30% // Head: 92.22% // Decreases project coverage by -0.07% ⚠️

Coverage data is based on head (8897d20) compared to base (a3f96ff).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 8897d20 differs from pull request most recent head 15375c8. Consider uploading reports for the commit 15375c8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6259      +/-   ##
==========================================
- Coverage   92.30%   92.22%   -0.08%     
==========================================
  Files         219      219              
  Lines       13463    13466       +3     
==========================================
- Hits        12427    12419       -8     
- Misses        806      817      +11     
  Partials      230      230              
Impacted Files Coverage Δ
pdata/pmetric/generated_metrics.go 96.09% <100.00%> (ø)
pdata/pmetric/metric_data_point_flags.go 100.00% <100.00%> (ø)
pdata/internal/wrapper_metrics.go 52.17% <0.00%> (-47.83%) ⬇️
confmap/resolver.go 97.20% <0.00%> (-0.15%) ⬇️
pdata/plog/logs.go 96.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bogdandrutu
Copy link
Member

where is the DataPointFlags defined?

@dmitryax
Copy link
Member Author

@bogdandrutu
Copy link
Member

bogdandrutu commented Oct 11, 2022

As a new rule we want to rename all the structs for proto messages defined at the package level to not have the owner prefix in its name.

Read the description.

Base on what rule do you think this change should be done?

@dmitryax
Copy link
Member Author

Right, the description is a bit incorrect. This is proto enum not a message https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/metrics/v1/metrics.proto#L321. But I believe we should apply the same rule for enums. Do you think otherwise?

@dmitryax
Copy link
Member Author

Updated the description

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