private static Baggage MergeBaggages(IList <Reference> references)
        {
            var baggage = new Baggage();

            foreach (var reference in references)
            {
                if (reference.Context.GetBaggageItems() != null)
                {
                    foreach (var bagItem in reference.Context.GetBaggageItems())
                    {
                        baggage.Set(bagItem.Key, bagItem.Value);
                    }
                }
            }

            return(baggage);
        }
 /// <summary>
 ///     Set an item on the baggage.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public ISpanContext SetBaggageItem(string key, string value)
 {
     _baggage.Set(key, value);
     return(this);
 }