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