34 writes to Current
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Tests (8)
Microsoft.Extensions.AI (8)
Stress.ApiService (6)
System.Net.Http (1)
System.Net.NameResolution (1)
System.Net.Sockets (1)
137 references to Current
aspire (1)
Aspire.Dashboard (1)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
Aspire.StackExchange.Redis (1)
AzureAIFoundryEndToEnd.WebStory (1)
AzureOpenAIEndToEnd.WebStory (1)
BlazorUnitedApp (1)
ClaimsTransformation (1)
Cookies (1)
DevTunnels.WebFrontEnd (1)
DynamicSchemes (1)
FileBasedApps.WebFrontEnd (1)
GitHubModelsEndToEnd.WebStory (1)
HostedBlazorWebassemblyApp.Server (1)
Keycloak.Web (1)
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Hosting.Tests (54)
HostingApplicationDiagnosticsTests.cs (50)
206measurementActivity = Activity.Current;
562Assert.Null(Activity.Current);
602Assert.Null(Activity.Current);
633Assert.Null(Activity.Current);
670Assert.NotNull(Activity.Current);
690Assert.NotNull(Activity.Current);
691Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
697Assert.NotNull(Activity.Current);
714Assert.NotNull(Activity.Current);
715Assert.True(Activity.Current.Duration > TimeSpan.Zero);
716Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
738Assert.NotNull(Activity.Current);
739Assert.True(Activity.Current.Duration > TimeSpan.Zero);
740Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
762Assert.NotNull(Activity.Current);
763Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
790Assert.NotNull(Activity.Current);
791Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
819Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
820Assert.Null(Activity.Current.ParentId);
821Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
822Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
849Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
850Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
851Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
879Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
880Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
881Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
910Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
911Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3");
912Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4");
940Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
949Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray());
977Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
978Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1");
1007Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
1008Assert.Equal(ActivityIdFormat.W3C, Activity.Current.IdFormat);
1009Assert.Equal("0123456789abcdef0123456789abcdef", Activity.Current.TraceId.ToHexString());
1010Assert.Equal("0123456789abcdef", Activity.Current.ParentSpanId.ToHexString());
1011Assert.Equal("tracestate=1", Activity.Current.TraceStateString);
1013Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
1014Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
1074Assert.Null(Activity.Current);
1085Assert.NotNull(Activity.Current);
1086Assert.True(Activity.Current.Recorded);
1102parentSpanId = Activity.Current.ParentSpanId.ToHexString();
1103tags = Activity.Current.TagObjects.OrderBy(t => t.Key).ToList();
1144parentSpanId = Activity.Current.ParentSpanId.ToHexString();
1145tags = Activity.Current.TagObjects.OrderBy(t => t.Key).ToList();
1202tags = Activity.Current.TagObjects.ToDictionary();
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
Microsoft.AspNetCore.SignalR.Core (5)
Microsoft.Extensions.AI (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Tests (1)
MvcFormSample (1)
MyFrontend (1)
OpenAIEndToEnd.WebStory (1)
OrderProcessor (2)
PathSchemeSelection (1)
Publishers.Frontend (1)
StaticFilesAuth (1)
Stress.ApiService (3)
System.Diagnostics.DiagnosticSource (14)
System.Net.Http (4)
System.Net.NameResolution (1)
System.Net.Sockets (1)
WaitFor.Frontend (1)
WebFrontEnd (1)