OpenTelemetry.Baggage
Baggage implementation.
namespace OpenTelemetry
{
public readonly struct Baggage : IEquatable<Baggage>
{
public static Baggage Current { get; set; }
public int Count { get; }
public static bool operator ==(Baggage left, Baggage right);
public static bool operator !=(Baggage left, Baggage right);
public static Baggage Create(Dictionary<string, string> baggageItems = null);
public static IReadOnlyDictionary<string, string> GetBaggage(Baggage baggage = default(Baggage));
public static Dictionary<string, string>.Enumerator GetEnumerator(Baggage baggage = default(Baggage));
public static string GetBaggage(string name, Baggage baggage = default(Baggage));
public static Baggage SetBaggage(string name, string value, Baggage baggage = default(Baggage));
public static Baggage SetBaggage(IEnumerable<KeyValuePair<string, string>> baggageItems, Baggage baggage = default(Baggage));
public static Baggage RemoveBaggage(string name, Baggage baggage = default(Baggage));
public static Baggage ClearBaggage(Baggage baggage = default(Baggage));
public IReadOnlyDictionary<string, string> GetBaggage();
public string GetBaggage(string name);
public Baggage SetBaggage(string name, string value);
public Baggage SetBaggage(params KeyValuePair<string, string>[] baggageItems);
public Baggage SetBaggage(IEnumerable<KeyValuePair<string, string>> baggageItems);
public Baggage RemoveBaggage(string name);
public Baggage ClearBaggage();
public Dictionary<string, string>.Enumerator GetEnumerator();
public bool Equals(Baggage other);
}
}