29 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 (3)
Stress.ApiService (6)
System.Net.Http (1)
System.Net.NameResolution (1)
System.Net.Sockets (1)
140 references to Current
Aspire.Dashboard (1)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
Aspire.StackExchange.Redis (1)
ClaimsTransformation (1)
Cookies (1)
DynamicSchemes (1)
HostedBlazorWebassemblyApp.Server (1)
Identity.DefaultUI.WebSite (1)
Identity.ExternalClaims (1)
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Hosting.Tests (54)
HostingApplicationDiagnosticsTests.cs (50)
205measurementActivity = Activity.Current;
556Assert.Null(Activity.Current);
596Assert.Null(Activity.Current);
627Assert.Null(Activity.Current);
664Assert.NotNull(Activity.Current);
684Assert.NotNull(Activity.Current);
685Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
691Assert.NotNull(Activity.Current);
708Assert.NotNull(Activity.Current);
709Assert.True(Activity.Current.Duration > TimeSpan.Zero);
710Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
732Assert.NotNull(Activity.Current);
733Assert.True(Activity.Current.Duration > TimeSpan.Zero);
734Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
756Assert.NotNull(Activity.Current);
757Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
784Assert.NotNull(Activity.Current);
785Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
813Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
814Assert.Null(Activity.Current.ParentId);
815Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
816Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
843Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
844Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
845Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
873Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
874Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
875Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
904Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
905Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3");
906Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4");
934Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
943Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray());
971Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
972Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1");
1001Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
1002Assert.Equal(ActivityIdFormat.W3C, Activity.Current.IdFormat);
1003Assert.Equal("0123456789abcdef0123456789abcdef", Activity.Current.TraceId.ToHexString());
1004Assert.Equal("0123456789abcdef", Activity.Current.ParentSpanId.ToHexString());
1005Assert.Equal("tracestate=1", Activity.Current.TraceStateString);
1007Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
1008Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
1068Assert.Null(Activity.Current);
1079Assert.NotNull(Activity.Current);
1080Assert.True(Activity.Current.Recorded);
1096parentSpanId = Activity.Current.ParentSpanId.ToHexString();
1097tags = Activity.Current.TagObjects.OrderBy(t => t.Key).ToList();
1138parentSpanId = Activity.Current.ParentSpanId.ToHexString();
1139tags = Activity.Current.TagObjects.OrderBy(t => t.Key).ToList();
1196tags = Activity.Current.TagObjects.ToDictionary();
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (15)
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.Build.Framework (2)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Tests (1)
MvcFormSample (1)
OrderProcessor (2)
PathSchemeSelection (1)
StaticFilesAuth (1)
Stress.ApiService (3)
System.Diagnostics.DiagnosticSource (14)
System.Net.Http (4)
System.Net.NameResolution (1)
System.Net.Sockets (1)