33 references to Baggage
Microsoft.AspNetCore.Hosting.Tests (12)
HostingApplicationDiagnosticsTests.cs (12)
821Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 822Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 850Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 851Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 880Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 881Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 911Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3"); 912Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4"); 949Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray()); 978Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1"); 1013Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 1014Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (10)
HubConnectionTests.Tracing.cs (10)
149Assert.Empty(a.Baggage); 160var baggage = a.Baggage.ToDictionary(); 172var baggage = a.Baggage.ToDictionary(); 182Assert.Empty(a.Baggage); 193var baggage = clientActivity1.Baggage.ToDictionary(); 210baggage = clientActivity2.Baggage.ToDictionary(); 321Assert.Empty(a.Baggage); 333var baggage = a.Baggage.ToDictionary(); 344Assert.Empty(a.Baggage); 354var baggage = clientActivity.Baggage.ToDictionary();
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
63IEnumerable<KeyValuePair<string, string?>> baggage = activity.Baggage;
Microsoft.Extensions.Telemetry (1)
Logging\Import\LoggerFactoryScopeProvider.cs (1)
78IEnumerable<KeyValuePair<string, string?>> baggage = activity.Baggage;
System.Diagnostics.DiagnosticSource (9)
System\Diagnostics\Activity.cs (6)
338/// <seealso cref="Baggage"/> 436foreach (KeyValuePair<string, string?> keyValue in Baggage) 474/// is useful to log but not needed for runtime control (for the latter, <see cref="Baggage"/>) 484/// is useful to log but not needed for runtime control (for the latter, <see cref="Baggage"/>) 627/// This shows up in the <see cref="Baggage"/> enumeration as well as the <see cref="GetBaggageItem(string)"/> 2186public List<KeyValuePair<string, string?>> Baggage => new List<KeyValuePair<string, string?>>(activity.Baggage);
System\Diagnostics\LegacyPropagator.cs (1)
42InjectBaggage(carrier, activity.Baggage, setter);
System\Diagnostics\PassThroughPropagator.cs (1)
56baggage = activity?.Baggage;
System\Diagnostics\W3CPropagator.cs (1)
45InjectW3CBaggage(carrier, activity.Baggage, setter);