Struct CausalId
A causal id: the 16 bytes of a W3C trace id, as two halves. Zero means none.
public readonly struct CausalId : IEquatable<CausalId>
- Implements
- Inherited Members
Constructors
CausalId(ulong, ulong)
A causal id: the 16 bytes of a W3C trace id, as two halves. Zero means none.
public CausalId(ulong Hi, ulong Lo)
Parameters
HiulongThe first 8 bytes, read little-endian — the layout the profiler's span trace context uses.
LoulongThe last 8 bytes.
Properties
Hi
The first 8 bytes, read little-endian — the layout the profiler's span trace context uses.
public ulong Hi { get; init; }
Property Value
IsNone
True when this is None.
public bool IsNone { get; }
Property Value
Lo
The last 8 bytes.
public ulong Lo { get; init; }
Property Value
None
No causal id.
public static CausalId None { get; }
Property Value
Methods
Deconstruct(out ulong, out ulong)
public void Deconstruct(out ulong Hi, out ulong Lo)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(CausalId)
public bool Equals(CausalId other)
Parameters
otherCausalId
Returns
FromTraceId(ActivityTraceId)
The causal id of a W3C trace id, split the way the span prologue splits TraceId.
public static CausalId FromTraceId(ActivityTraceId traceId)
Parameters
traceIdActivityTraceId
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CausalId, CausalId)
public static bool operator ==(CausalId left, CausalId right)
Parameters
Returns
operator !=(CausalId, CausalId)
public static bool operator !=(CausalId left, CausalId right)