Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed Sep 15, 2021
1 parent 8761dbe commit a115014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ public BaseExportingMetricReader(BaseExporter<Metric> 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];
this.PreferredAggregationTemporality = attr.Preferred;
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];
Expand Down

0 comments on commit a115014

Please sign in to comment.