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

View File

@ -37,7 +37,7 @@ namespace OpenTelemetry.Metrics
var options = new ConsoleExporterOptions(); var options = new ConsoleExporterOptions();
configure?.Invoke(options); 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; public ConsoleExporterOutputTargets Targets { get; set; } = ConsoleExporterOutputTargets.Console;
/// <summary> /// <summary>
/// Gets or sets the metric export interval. /// Gets or sets the metric export interval in milliseconds. The default value is 1000 milliseconds.
/// </summary> /// </summary>
public int MetricExportInterval { get; set; } = 1000; public int MetricExportIntervalMilliSeconds { get; set; } = 1000;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether to export Delta /// Gets or sets a value indicating whether to export Delta

View File

@ -44,7 +44,7 @@ namespace OpenTelemetry.Metrics
var options = new InMemoryExporterOptions(); var options = new InMemoryExporterOptions();
configure?.Invoke(options); 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 public class InMemoryExporterOptions
{ {
/// <summary> /// <summary>
/// Gets or sets the metric export interval. /// Gets or sets the metric export interval in milliseconds. The default value is 1000 milliseconds.
/// </summary> /// </summary>
public int MetricExportInterval { get; set; } = 1000; public int MetricExportIntervalMilliSeconds { get; set; } = 1000;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether to export Delta /// 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>(); public BatchExportProcessorOptions<Activity> BatchExportProcessorOptions { get; set; } = new BatchExportProcessorOptions<Activity>();
/// <summary> /// <summary>
/// Gets or sets the metric export interval. /// Gets or sets the metric export interval in milliseconds. The default value is 1000 milliseconds.
/// </summary> /// </summary>
public int MetricExportInterval { get; set; } = 1000; public int MetricExportIntervalMilliSeconds { get; set; } = 1000;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether to export Delta /// Gets or sets a value indicating whether to export Delta

View File

@ -39,7 +39,7 @@ namespace OpenTelemetry.Metrics
var options = new OtlpExporterOptions(); var options = new OtlpExporterOptions();
configure?.Invoke(options); 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));
} }
} }
} }