<PackageReference Include="OpenTelemetry.Api" Version="1.13.1" />

OpenTelemetry.Trace.Status

public struct Status : IEquatable<Status>
Span execution status.
public static readonly Status Error

The operation contains an error.

public static readonly Status Ok

The operation completed successfully.

public static readonly Status Unset

The default status.

public string Description { get; }

Gets the status description.

public StatusCode StatusCode { get; }

Gets the canonical code from this status.

public static bool op_Equality(Status status1, Status status2)

Compare two Status for equality.

public static bool op_Inequality(Status status1, Status status2)

Compare two Status for not equality.

public bool Equals(Status other)

public Status WithDescription(string description)

Returns a new instance of a status with the description populated.