Property BaggageSource
BaggageSource
Gets or sets a callback that supplies the baggage entries to inject on publish.
public Func<IEnumerable<KeyValuePair<string, string?>>>? BaggageSource { get; set; }
Property Value
Remarks
When set (and PropagateBaggage is true), this replaces the send activity's
Baggage as the source of injected baggage, allowing applications
whose baggage lives elsewhere (for example OpenTelemetry's Baggage.Current) to
propagate it. Entries with null values are skipped. Returning null or an empty sequence
means no baggage. Only used on publish; the callback must not throw.