Table of Contents

Class TraceContextExtensions

Namespace
Excalibur.Dispatch.Extensions
Assembly
Excalibur.Dispatch.dll

Extension methods for working with distributed trace context.

public static class TraceContextExtensions
Inheritance
TraceContextExtensions
Inherited Members

Methods

GetTraceParentOrCurrent(IMessageContext)

Retrieves the traceparent value from the context or the current Activity.

public static string? GetTraceParentOrCurrent(this IMessageContext context)

Parameters

context IMessageContext

Message context.

Returns

string

The traceparent string if available; otherwise, null .