31 references to Baggage
Microsoft.AspNetCore.Hosting.Tests (12)
HostingApplicationDiagnosticsTests.cs (12)
746Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 747Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 775Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 776Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 805Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 806Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 836Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3"); 837Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4"); 874Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray()); 903Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1"); 938Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 939Assert.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)
82IEnumerable<KeyValuePair<string, string?>> baggage = activity.Baggage;
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Activity.cs (5)
335/// <seealso cref="Baggage"/> 433foreach (KeyValuePair<string, string?> keyValue in Baggage) 471/// is useful to log but not needed for runtime control (for the latter, <see cref="Baggage"/>) 481/// 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)"/>
System\Diagnostics\LegacyPropagator.cs (1)
42InjectBaggage(carrier, activity.Baggage, setter);
System\Diagnostics\PassThroughPropagator.cs (1)
56baggage = activity?.Baggage;