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

Simplify code #2491

Merged
merged 2 commits into from
Oct 18, 2021
Merged

Simplify code #2491

merged 2 commits into from
Oct 18, 2021

Conversation

reyang
Copy link
Member

@reyang reyang commented Oct 16, 2021

Moved DropConfiguration into MetricStreamConfiguration class.
Changed DropConfiguration to private sealed.
Removed the throw (which seems unnecessary).

@reyang reyang requested a review from a team October 16, 2021 04:17
public override Aggregation Aggregation
{
get => Aggregation.Drop;
set { }
Copy link
Member

@alanwest alanwest Oct 16, 2021

Choose a reason for hiding this comment

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

A good thinking. I like it. There's just a test that needs fixing that asserts an exception is thrown.

@codecov
Copy link

codecov bot commented Oct 18, 2021

Codecov Report

Merging #2491 (4d560cf) into main (d119447) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2491      +/-   ##
==========================================
- Coverage   79.88%   79.88%   -0.01%     
==========================================
  Files         254      253       -1     
  Lines        8570     8569       -1     
==========================================
- Hits         6846     6845       -1     
  Misses       1724     1724              
Impacted Files Coverage Δ
...OpenTelemetry/Metrics/MetricStreamConfiguration.cs 100.00% <100.00%> (ø)

@cijothomas cijothomas merged commit 84bdf38 into open-telemetry:main Oct 18, 2021
@reyang reyang deleted the reyang/simplify branch October 18, 2021 17:58
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.

4 participants