Skip to content

Add exception handler overloads to ObserveDuration #89

Add exception handler overloads to ObserveDuration

Add exception handler overloads to ObserveDuration #89

Triggered via pull request March 9, 2026 13:46
Status Success
Total duration 2m 23s
Artifacts

build.yml

on: pull_request
Matrix: Build & Test
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L172
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L166
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L151
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorTests/ProcessCollectorTests.cs#L62
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorTests/ProcessCollectorTests.cs#L37
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorTests/GCCollectionCountCollectorTests.cs#L49
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorTests/GCTotalMemoryCollectorTests.cs#L49
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorTests/GCCollectionCountCollectorTests.cs#L31
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (ubuntu-latest): tests/Prometheus.Client.Tests/CollectorTests/GCTotalMemoryCollectorTests.cs#L31
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorTests/GCTotalMemoryCollectorTests.cs#L49
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorTests/GCTotalMemoryCollectorTests.cs#L31
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorTests/ProcessCollectorTests.cs#L62
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L174
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L172
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L166
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorRegistryTests.cs#L151
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
Build & Test (windows-latest): tests/Prometheus.Client.Tests/CollectorTests/ProcessCollectorTests.cs#L37
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)