Skip to content

Commit cbd4215

Browse files
maxsenftkhellang
authored andcommitted
Return type of GetTraceId should be nullable
1 parent 464fe49 commit cbd4215

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ProblemDetails/ProblemDetailsOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public ProblemDetailsOptions()
5555
/// The default gets the ID from <see cref="Activity.Current"/> with a
5656
/// fallback to <see cref="HttpContext.TraceIdentifier"/>.
5757
/// </summary>
58-
public Func<HttpContext, string> GetTraceId { get; set; } = null!;
58+
public Func<HttpContext, string?> GetTraceId { get; set; } = null!;
5959

6060
/// <summary>
6161
/// Gets or sets the predicate used for determining whether exception details (stack trace etc.)

0 commit comments

Comments
 (0)