32 references to Baggage
Microsoft.AspNetCore.Hosting.Tests (12)
HostingApplicationDiagnosticsTests.cs (12)
815Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 816Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 844Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 845Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 874Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 875Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2"); 905Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3"); 906Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4"); 943Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray()); 972Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1"); 1007Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1"); 1008Assert.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 (8)
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"/>) 624/// 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;
System\Diagnostics\W3CPropagator.cs (1)
45InjectW3CBaggage(carrier, activity.Baggage, setter);