Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed Oct 16, 2021
1 parent d119447 commit d71e114
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 35 deletions.
35 changes: 0 additions & 35 deletions src/OpenTelemetry/Metrics/DropConfiguration.cs

This file was deleted.

9 changes: 9 additions & 0 deletions src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,14 @@ public class MetricStreamConfiguration
public virtual Aggregation Aggregation { get; set; }

// TODO: MetricPoints caps can be configured here

private sealed class DropConfiguration : MetricStreamConfiguration
{
public override Aggregation Aggregation
{
get => Aggregation.Drop;
set { }
}
}
}
}

0 comments on commit d71e114

Please sign in to comment.