<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.7.0-preview2.19523.17" />

ActivitySpanId

Represents a SpanId formatted based on a W3C standard.
public static ActivitySpanId CreateFromBytes(ReadOnlySpan<byte> idData)

Creates a new ActivitySpanId value from a read-only span of eight bytes.

public static ActivitySpanId CreateFromString(ReadOnlySpan<char> idData)

Creates a new ActivitySpanId value from a read-only span of 16 hexadecimal characters.

public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan<byte> idData)

Creates a new ActivitySpanId value from a read-only span of UTF8-encoded bytes.

public static ActivitySpanId CreateRandom()

Creates a new ActivitySpanId based on a random number (that is very likely to be unique).

public static bool op_Equality(ActivitySpanId spanId1, ActivitySpanId spandId2)

Determines whether two specified ActivitySpanId instances have the same value.

public static bool op_Inequality(ActivitySpanId spanId1, ActivitySpanId spandId2)

Determine whether two specified ActivitySpanId instances have unequal values.

public void CopyTo(Span<byte> destination)

Copies the 8 bytes of the current ActivitySpanId to a specified span.

public bool Equals(ActivitySpanId spanId)

Determines whether this instance and the specified ActivitySpanId instance have the same value.

public string ToHexString()

Returns a 16-character hexadecimal string that represents this span ID.