Rename MetricExportInterval to MtricExportIntervalMilliSeconds (#2193)

This commit is contained in:
Utkarsh Umesan Pillai 2021-07-26 15:56:17 -07:00 committed by GitHub
parent 28f59eb4c2
commit d99db276cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View File

@ -66,7 +66,7 @@ namespace Examples.Console
providerBuilder
.AddOtlpExporter(o =>
{
o.MetricExportInterval = options.DefaultCollectionPeriodMilliseconds;
o.MetricExportIntervalMilliSeconds = options.DefaultCollectionPeriodMilliseconds;
o.IsDelta = options.IsDelta;
});
}
@ -75,7 +75,7 @@ namespace Examples.Console
providerBuilder
.AddConsoleExporter(o =>
{
o.MetricExportInterval = options.DefaultCollectionPeriodMilliseconds;
o.MetricExportIntervalMilliSeconds = options.DefaultCollectionPeriodMilliseconds;
o.IsDelta = options.IsDelta;
});
}

View File

@ -37,7 +37,7 @@ namespace OpenTelemetry.Metrics
var options = new ConsoleExporterOptions();
configure?.Invoke(options);
return builder.AddMetricProcessor(new PushMetricProcessor(new ConsoleMetricExporter(options), options.MetricExportInterval, options.IsDelta));
return builder.AddMetricProcessor(new PushMetricProcessor(new ConsoleMetricExporter(options), options.MetricExportIntervalMilliSeconds, options.IsDelta));
}
}
}

View File

@ -24,9 +24,9 @@ namespace OpenTelemetry.Exporter
public ConsoleExporterOutputTargets Targets { get; set; } = ConsoleExporterOutputTargets.Console;
/// <summary>
/// Gets or sets the metric export interval.
/// Gets or sets the metric export interval in milliseconds. The default value is 1000 milliseconds.
/// </summary>
public int MetricExportInterval { get; set; } = 1000;
public int MetricExportIntervalMilliSeconds { get; set; } = 1000;
/// <summary>
/// Gets or sets a value indicating whether to export Delta

View File

@ -44,7 +44,7 @@ namespace OpenTelemetry.Metrics
var options = new InMemoryExporterOptions();
configure?.Invoke(options);
return builder.AddMetricProcessor(new PushMetricProcessor(new InMemoryExporter<MetricItem>(exportedItems), options.MetricExportInterval, options.IsDelta));
return builder.AddMetricProcessor(new PushMetricProcessor(new InMemoryExporter<MetricItem>(exportedItems), options.MetricExportIntervalMilliSeconds, options.IsDelta));
}
}
}

View File

@ -19,9 +19,9 @@ namespace OpenTelemetry.Exporter
public class InMemoryExporterOptions
{
/// <summary>
/// Gets or sets the metric export interval.
/// Gets or sets the metric export interval in milliseconds. The default value is 1000 milliseconds.
/// </summary>
public int MetricExportInterval { get; set; } = 1000;
public int MetricExportIntervalMilliSeconds { get; set; } = 1000;
/// <summary>
/// Gets or sets a value indicating whether to export Delta

View File

@ -54,9 +54,9 @@ namespace OpenTelemetry.Exporter
public BatchExportProcessorOptions<Activity> BatchExportProcessorOptions { get; set; } = new BatchExportProcessorOptions<Activity>();
/// <summary>
/// Gets or sets the metric export interval.
/// Gets or sets the metric export interval in milliseconds. The default value is 1000 milliseconds.
/// </summary>
public int MetricExportInterval { get; set; } = 1000;
public int MetricExportIntervalMilliSeconds { get; set; } = 1000;
/// <summary>
/// Gets or sets a value indicating whether to export Delta

View File

@ -39,7 +39,7 @@ namespace OpenTelemetry.Metrics
var options = new OtlpExporterOptions();
configure?.Invoke(options);
return builder.AddMetricProcessor(new PushMetricProcessor(new OtlpMetricsExporter(options), options.MetricExportInterval, options.IsDelta));
return builder.AddMetricProcessor(new PushMetricProcessor(new OtlpMetricsExporter(options), options.MetricExportIntervalMilliSeconds, options.IsDelta));
}
}
}