From a115014af7e68a07200ba0eb9fbf5facee1f3d73 Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Tue, 14 Sep 2021 18:11:20 -0700 Subject: [PATCH] fix variable name --- src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs b/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs index e119ae6761c..c3917b7658d 100644 --- a/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs +++ b/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs @@ -29,8 +29,8 @@ public BaseExportingMetricReader(BaseExporter exporter) { this.exporter = exporter ?? throw new ArgumentNullException(nameof(exporter)); - var exportType = exporter.GetType(); - var attributes = exportType.GetCustomAttributes(typeof(AggregationTemporalityAttribute), true); + var exportorType = exporter.GetType(); + var attributes = exportorType.GetCustomAttributes(typeof(AggregationTemporalityAttribute), true); if (attributes.Length > 0) { var attr = (AggregationTemporalityAttribute)attributes[attributes.Length - 1]; @@ -38,7 +38,7 @@ public BaseExportingMetricReader(BaseExporter exporter) this.SupportedAggregationTemporality = attr.Supported; } - attributes = exportType.GetCustomAttributes(typeof(ExportModeAttribute), true); + attributes = exportorType.GetCustomAttributes(typeof(ExportModeAttribute), true); if (attributes.Length > 0) { var attr = (ExportModeAttribute)attributes[attributes.Length - 1];