Rename MetricExportInterval to MtricExportIntervalMilliSeconds (#2193)
This commit is contained in:
parent
28f59eb4c2
commit
d99db276cd
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue