-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ internal sealed class PrometheusCollectionManager | |
private ArraySegment<byte> previousPlainTextDataView; | ||
private ArraySegment<byte> previousOpenMetricsDataView; | ||
private int globalLockState; | ||
private DateTime? previousDataViewGeneratedAtUtc; | ||
private DateTime? previousPlainTextDataViewGeneratedAtUtc; | ||
private DateTime? previousOpenMetricsDataViewGeneratedAtUtc; | ||
private int readerCount; | ||
private bool collectionRunning; | ||
private TaskCompletionSource<CollectionResponse> collectionTcs; | ||
|
@@ -46,16 +47,20 @@ public Task<CollectionResponse> EnterCollect(bool openMetricsRequested) | |
|
||
// If we are within {ScrapeResponseCacheDurationMilliseconds} of the | ||
// last successful collect, return the previous view. | ||
if (this.previousDataViewGeneratedAtUtc.HasValue | ||
var previousDataViewGeneratedAtUtc = openMetricsRequested | ||
? this.previousOpenMetricsDataViewGeneratedAtUtc | ||
: this.previousPlainTextDataViewGeneratedAtUtc; | ||
|
||
if (previousDataViewGeneratedAtUtc.HasValue | ||
&& this.scrapeResponseCacheDurationMilliseconds > 0 | ||
&& this.previousDataViewGeneratedAtUtc.Value.AddMilliseconds(this.scrapeResponseCacheDurationMilliseconds) >= DateTime.UtcNow) | ||
&& previousDataViewGeneratedAtUtc.Value.AddMilliseconds(this.scrapeResponseCacheDurationMilliseconds) >= DateTime.UtcNow) | ||
{ | ||
Interlocked.Increment(ref this.readerCount); | ||
this.ExitGlobalLock(); | ||
#if NET6_0_OR_GREATER | ||
return new ValueTask<CollectionResponse>(new CollectionResponse(this.previousOpenMetricsDataView, this.previousPlainTextDataView, this.previousDataViewGeneratedAtUtc.Value, fromCache: true)); | ||
return new ValueTask<CollectionResponse>(new CollectionResponse(this.previousOpenMetricsDataView, this.previousPlainTextDataView, openMetricsRequested, previousDataViewGeneratedAtUtc.Value, fromCache: true)); | ||
#else | ||
return Task.FromResult(new CollectionResponse(this.previousOpenMetricsDataView, this.previousPlainTextDataView, this.previousDataViewGeneratedAtUtc.Value, fromCache: true)); | ||
return Task.FromResult(new CollectionResponse(this.previousOpenMetricsDataView, this.previousPlainTextDataView, openMetricsRequested, previousDataViewGeneratedAtUtc.Value, fromCache: true)); | ||
#endif | ||
} | ||
|
||
|
@@ -80,16 +85,35 @@ public Task<CollectionResponse> EnterCollect(bool openMetricsRequested) | |
|
||
// Start a collection on the current thread. | ||
this.collectionRunning = true; | ||
this.previousDataViewGeneratedAtUtc = null; | ||
if (openMetricsRequested) | ||
{ | ||
this.previousOpenMetricsDataViewGeneratedAtUtc = null; | ||
} | ||
else | ||
{ | ||
this.previousPlainTextDataViewGeneratedAtUtc = null; | ||
} | ||
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-stable
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-stable
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-stable
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-stable
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-stable
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-stable
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-experimental
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-experimental
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-experimental
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-experimental
Check warning on line 95 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / lint-dotnet-format / run-dotnet-format-experimental
|
||
Interlocked.Increment(ref this.readerCount); | ||
this.ExitGlobalLock(); | ||
|
||
CollectionResponse response; | ||
var result = this.ExecuteCollect(openMetricsRequested); | ||
if (result) | ||
{ | ||
this.previousDataViewGeneratedAtUtc = DateTime.UtcNow; | ||
response = new CollectionResponse(this.previousOpenMetricsDataView, this.previousPlainTextDataView, this.previousDataViewGeneratedAtUtc.Value, fromCache: false); | ||
if (openMetricsRequested) | ||
{ | ||
this.previousOpenMetricsDataViewGeneratedAtUtc = DateTime.UtcNow; | ||
} | ||
else | ||
{ | ||
this.previousPlainTextDataViewGeneratedAtUtc = DateTime.UtcNow; | ||
} | ||
|
||
previousDataViewGeneratedAtUtc = openMetricsRequested | ||
? this.previousOpenMetricsDataViewGeneratedAtUtc | ||
: this.previousPlainTextDataViewGeneratedAtUtc; | ||
|
||
response = new CollectionResponse(this.previousOpenMetricsDataView, this.previousPlainTextDataView, openMetricsRequested, previousDataViewGeneratedAtUtc.Value, fromCache: false); | ||
} | ||
else | ||
{ | ||
|
@@ -216,6 +240,10 @@ private ExportResult OnCollect(Batch<Metric> metrics) | |
} | ||
} | ||
} | ||
else | ||
{ | ||
int a = 1; | ||
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-unstable-core / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-experimental
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / validate-packages / run-package-validation-stable
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (ubuntu-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
Check failure on line 245 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)
|
||
} | ||
|
||
foreach (var metric in metrics) | ||
{ | ||
|
@@ -350,10 +378,11 @@ private PrometheusMetric GetPrometheusMetric(Metric metric) | |
|
||
public readonly struct CollectionResponse | ||
{ | ||
public CollectionResponse(ArraySegment<byte> openMetricsView, ArraySegment<byte> plainTextView, DateTime generatedAtUtc, bool fromCache) | ||
public CollectionResponse(ArraySegment<byte> openMetricsView, ArraySegment<byte> plainTextView, bool openMetricsRequested, DateTime generatedAtUtc, bool fromCache) | ||
{ | ||
this.OpenMetricsView = openMetricsView; | ||
this.PlainTextView = plainTextView; | ||
this.OpenMetricsRequested = openMetricsRequested; | ||
this.GeneratedAtUtc = generatedAtUtc; | ||
this.FromCache = fromCache; | ||
} | ||
|
@@ -362,6 +391,8 @@ public CollectionResponse(ArraySegment<byte> openMetricsView, ArraySegment<byte> | |
|
||
public ArraySegment<byte> PlainTextView { get; } | ||
|
||
public bool OpenMetricsRequested { get; } | ||
|
||
public DateTime GeneratedAtUtc { get; } | ||
|
||
public bool FromCache { get; } | ||
|