31 references to Baggage
Microsoft.AspNetCore.Hosting.Tests (12)
HostingApplicationDiagnosticsTests.cs (12)
746
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key1" && pair.Value == "value1");
747
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key2" && pair.Value == "value2");
775
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key1" && pair.Value == "value1");
776
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key2" && pair.Value == "value2");
805
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key1" && pair.Value == "value1");
806
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key2" && pair.Value == "value2");
836
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key1" && pair.Value == "value3");
837
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key2" && pair.Value == "value4");
874
Assert.Equal(expectedBaggage, Activity.Current.
Baggage
.ToArray());
903
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key1" && pair.Value == "value1/1");
938
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key1" && pair.Value == "value1");
939
Assert.Contains(Activity.Current.
Baggage
, pair => pair.Key == "Key2" && pair.Value == "value2");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (10)
HubConnectionTests.Tracing.cs (10)
149
Assert.Empty(a.
Baggage
);
160
var baggage = a.
Baggage
.ToDictionary();
172
var baggage = a.
Baggage
.ToDictionary();
182
Assert.Empty(a.
Baggage
);
193
var baggage = clientActivity1.
Baggage
.ToDictionary();
210
baggage = clientActivity2.
Baggage
.ToDictionary();
321
Assert.Empty(a.
Baggage
);
333
var baggage = a.
Baggage
.ToDictionary();
344
Assert.Empty(a.
Baggage
);
354
var baggage = clientActivity.
Baggage
.ToDictionary();
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
63
IEnumerable<KeyValuePair<string, string?>> baggage = activity.
Baggage
;
Microsoft.Extensions.Telemetry (1)
Logging\Import\LoggerFactoryScopeProvider.cs (1)
82
IEnumerable<KeyValuePair<string, string?>> baggage = activity.
Baggage
;
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Activity.cs (5)
335
/// <seealso cref="
Baggage
"/>
433
foreach (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)
42
InjectBaggage(carrier, activity.
Baggage
, setter);
System\Diagnostics\PassThroughPropagator.cs (1)
56
baggage = activity?.
Baggage
;