संपादित करें

इसके माध्यम से साझा किया गया


DistributedContextPropagator Class

Definition

An implementation of DistributedContextPropagator determines if and how distributed context information is encoded and decoded as it traverses the network. The encoding can be transported over any network protocol that supports string key-value pairs. For example, when using HTTP, each key-value pair is an HTTP header. DistributedContextPropagator injects values into and extracts values from carriers as string key-value pairs.

public ref class DistributedContextPropagator abstract
public abstract class DistributedContextPropagator
type DistributedContextPropagator = class
Public MustInherit Class DistributedContextPropagator
Inheritance
DistributedContextPropagator

Constructors

DistributedContextPropagator()

Initializes an instance of the DistributedContextPropagator class. This constructor is protected and only meant to be called from parent classes.

Properties

Current

Get or set the process-wide propagator object to use as the current selected propagator.

Fields

Gets the set of field names this propagator is likely to read or write.

Methods

CreateDefaultPropagator()

Returns the default propagator object that Current will be initialized with.

CreateNoOutputPropagator()

Returns a propagator that does not transmit any distributed context information in outbound network messages.

CreatePassThroughPropagator()

Returns a propagator that attempts to act transparently, emitting the same data on outbound network requests that was received on the inbound request. When encoding the outbound message, this propagator uses information from the request's root Activity, ignoring any intermediate Activities that may have been created while processing the request.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExtractBaggage(Object, DistributedContextPropagator+PropagatorGetterCallback)

Extracts the baggage key-value pair list from an incoming request represented by the carrier. For example, from the headers of an HTTP request.

ExtractTraceIdAndState(Object, DistributedContextPropagator+PropagatorGetterCallback, String, String)

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Inject(Activity, Object, DistributedContextPropagator+PropagatorSetterCallback)

Injects the trace values stored in the Activity object into a carrier. For example, into the headers of an HTTP request.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to