<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0-preview.4.22229.4" />

ActivityStatusCode

public enum ActivityStatusCode
Define the status code of the Activity which indicate the status of the instrumented operation.
Error = 2

Status code indicating an error is encountered during the operation.

Ok = 1

Status code indicating the operation has been validated and completed successfully.

Unset = 0

Unset status code is the default value indicating the status code is not initialized.