Table of Contents

Struct CausalId

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

Hi ulong

The first 8 bytes, read little-endian — the layout the profiler's span trace context uses.

Lo ulong

The 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

ulong

IsNone

True when this is None.

public bool IsNone { get; }

Property Value

bool

Lo

The last 8 bytes.

public ulong Lo { get; init; }

Property Value

ulong

None

No causal id.

public static CausalId None { get; }

Property Value

CausalId

Methods

Deconstruct(out ulong, out ulong)

public void Deconstruct(out ulong Hi, out ulong Lo)

Parameters

Hi ulong
Lo ulong

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(CausalId)

public bool Equals(CausalId other)

Parameters

other CausalId

Returns

bool

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

traceId ActivityTraceId

Returns

CausalId

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CausalId, CausalId)

public static bool operator ==(CausalId left, CausalId right)

Parameters

left CausalId
right CausalId

Returns

bool

operator !=(CausalId, CausalId)

public static bool operator !=(CausalId left, CausalId right)

Parameters

left CausalId
right CausalId

Returns

bool