5 instantiations of ExceptionSummary
Microsoft.Extensions.Diagnostics.ExceptionSummarization (4)
ExceptionSummarizer.cs (4)
70
return new
ExceptionSummary
(
77
return new
ExceptionSummary
(
92
return new
ExceptionSummary
(
98
return new
ExceptionSummary
(exceptionType, exceptionSummaryProvider.Descriptions[descriptionIndex], additionalDetails ?? DefaultDescription);
Microsoft.Extensions.Resilience.Tests (1)
Resilience\ResilienceMetricsEnricherTests.cs (1)
39
_summarizer!.Setup(v => v.Summarize(It.IsAny<Exception>())).Returns(new
ExceptionSummary
("type", "desc", "details"));
13 references to ExceptionSummary
Microsoft.Extensions.Diagnostics.ExceptionSummarization (13)
ExceptionSummarizer.cs (2)
31
public
ExceptionSummary
Summarize(Exception exception)
83
private static
ExceptionSummary
BuildSummary(
ExceptionSummary.cs (10)
18
/// The <see cref="
ExceptionSummary
.Description"/> property never includes sensitive information.
19
/// But the <see cref="
ExceptionSummary
.AdditionalDetails"/> property might contain sensitive information and thus shouldn't be used in telemetry.
21
public readonly struct ExceptionSummary : IEquatable<
ExceptionSummary
>
24
/// Initializes a new instance of the <see cref="
ExceptionSummary
"/> struct.
91
public override bool Equals(object? obj) => obj is
ExceptionSummary
summary && Equals(summary);
98
public bool Equals(
ExceptionSummary
other)
111
public static bool operator ==(
ExceptionSummary
left,
ExceptionSummary
right)
122
public static bool operator !=(
ExceptionSummary
left,
ExceptionSummary
right)
IExceptionSummarizer.cs (1)
18
public
ExceptionSummary
Summarize(Exception exception);