Table of Contents

Class ReverseProxyPropagator

Namespace
Yarp.ReverseProxy.Forwarder
Assembly
Yarp.ReverseProxy.dll

Removes existing headers and then delegates to the inner propagator.

public sealed class ReverseProxyPropagator : DistributedContextPropagator
Inheritance
ReverseProxyPropagator
Inherited Members

Constructors

ReverseProxyPropagator(DistributedContextPropagator)

ReverseProxyPropagator removes headers pointed out in innerPropagator.

public ReverseProxyPropagator(DistributedContextPropagator innerPropagator)

Parameters

innerPropagator DistributedContextPropagator

Properties

Fields

public override IReadOnlyCollection<string> Fields { get; }

Property Value

IReadOnlyCollection<string>

Methods

ExtractBaggage(object?, PropagatorGetterCallback?)

public override IEnumerable<KeyValuePair<string, string?>>? ExtractBaggage(object? carrier, DistributedContextPropagator.PropagatorGetterCallback? getter)

Parameters

carrier object
getter DistributedContextPropagator.PropagatorGetterCallback

Returns

IEnumerable<KeyValuePair<string, string>>

ExtractTraceIdAndState(object?, PropagatorGetterCallback?, out string?, out string?)

public override void ExtractTraceIdAndState(object? carrier, DistributedContextPropagator.PropagatorGetterCallback? getter, out string? traceId, out string? traceState)

Parameters

carrier object
getter DistributedContextPropagator.PropagatorGetterCallback
traceId string
traceState string

Inject(Activity?, object?, PropagatorSetterCallback?)

public override void Inject(Activity? activity, object? carrier, DistributedContextPropagator.PropagatorSetterCallback? setter)

Parameters

activity Activity
carrier object
setter DistributedContextPropagator.PropagatorSetterCallback