System.Diagnostics.DiagnosticSource: Activity with null operation name #77621
Labels
area-System.Diagnostics.Activity
breaking-change
Issue or PR that represents a breaking API or functional change over a prerelease.
needs-breaking-change-doc-created
Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet
Milestone
Activity
has a quirk in that itsOperationName
is not marked as nullable but its constructor allows it to benull
. Chatted offline with the group CCed below and we agreed that it is a low-risk change to coalesce tostring.Empty
in this case.Something like this:
We consider setting to something like
"<null>"
but decided to usestring.Empty
because that is similar to what happens forActivity.Source.Name
in the case of legacy instances./cc @tarekgh @noahfalk @reyang @cijothomas @utpilla @alanwest
The text was updated successfully, but these errors were encountered: