Seal Metric class for improved perf (#2461)
This commit is contained in:
parent
dd6b11bafa
commit
7fc0cbb2ac
|
|
@ -22,7 +22,7 @@ using System.Threading;
|
|||
|
||||
namespace OpenTelemetry.Metrics
|
||||
{
|
||||
internal class AggregatorStore
|
||||
internal sealed class AggregatorStore
|
||||
{
|
||||
internal const int MaxMetricPoints = 2000;
|
||||
private static readonly ObjectArrayEqualityComparer ObjectArrayComparer = new ObjectArrayEqualityComparer();
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ using System.Diagnostics.Metrics;
|
|||
|
||||
namespace OpenTelemetry.Metrics
|
||||
{
|
||||
public class Metric
|
||||
public sealed class Metric
|
||||
{
|
||||
internal static readonly double[] DefaultHistogramBounds = new double[] { 0, 5, 10, 25, 50, 75, 100, 250, 500, 1000 };
|
||||
private AggregatorStore aggStore;
|
||||
|
|
|
|||
Loading…
Reference in New Issue