<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="6.0.0-preview.3.21201.4" />

ActivityTraceId

Represents a TraceId whose format is based on a W3C standard.
public static ActivityTraceId CreateFromBytes(ReadOnlySpan<byte> idData)

Creates a new ActivityTraceId value from a read-only span of 16 bytes.

public static ActivityTraceId CreateFromString(ReadOnlySpan<char> idData)

Creates a new ActivityTraceId value from a read-only span of 32 hexadecimal characters.

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

public static ActivityTraceId CreateRandom()

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

public static bool op_Equality(ActivityTraceId traceId1, ActivityTraceId traceId2)

Determines whether two specified ActivityTraceId instances have the same value.

public static bool op_Inequality(ActivityTraceId traceId1, ActivityTraceId traceId2)

Determines whether two specified ActivityTraceId instances have the same value.

public void CopyTo(Span<byte> destination)

Copies the 16 bytes of the current ActivityTraceId to a specified span.

public bool Equals(ActivityTraceId traceId)

Determines whether the current instance and a specified ActivityTraceId are equal.

public string ToHexString()

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