Op Englesch liesen Editéieren

Deelen iwwer


DistributedContextPropagator.ExtractTraceIdAndState Method

Definition

Extracts the trace ID and trace state from an incoming request represented by the carrier. For example, from the headers of an HTTP request.

C#
public abstract void ExtractTraceIdAndState(object? carrier, System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback? getter, out string? traceId, out string? traceState);

Parameters

carrier
Object

The medium from which values will be read.

getter
DistributedContextPropagator.PropagatorGetterCallback

The callback method to invoke to get the propagation trace ID and state from the carrier.

traceId
String

When this method returns, contains the trace ID extracted from the carrier.

traceState
String

When this method returns, contains the trace state extracted from the carrier.

Applies to

Produkt Versiounen
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)