Table of Contents

Method FromTraceParent

Namespace
MailFathom.Application.Jobs
Assembly
MailFathom.Application.dll

FromTraceParent(string?, string?)

Reads a stored or propagated pair of values as a context, or reports that there is none to link to.

public static JobTraceContext? FromTraceParent(string? traceParent, string? traceState)

Parameters

traceParent string

The traceparent as it was captured or read back, which may be absent.

traceState string

The tracestate that accompanied it, which may be absent.

Returns

JobTraceContext

The context, or null when no usable one was recorded.

Remarks

Absence and an unusable value answer the same way on purpose. A row written before this column existed, a job enqueued outside any trace, and a value some other writer put in the column are all reasons to open the attempt's span without a link — and none of them is a reason to fail the attempt, which would trade work for telemetry.