22 writes to Current
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Tests (8)
Microsoft.Extensions.AI (3)
Stress.ApiService (4)
System.Net.Http (1)
System.Net.NameResolution (1)
System.Net.Sockets (1)
131 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.Hosting.Tests (50)
HostingApplicationDiagnosticsTests.cs (46)
205measurementActivity = Activity.Current;
491Assert.Null(Activity.Current);
531Assert.Null(Activity.Current);
562Assert.Null(Activity.Current);
599Assert.NotNull(Activity.Current);
619Assert.NotNull(Activity.Current);
620Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
626Assert.NotNull(Activity.Current);
643Assert.NotNull(Activity.Current);
644Assert.True(Activity.Current.Duration > TimeSpan.Zero);
645Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
667Assert.NotNull(Activity.Current);
668Assert.True(Activity.Current.Duration > TimeSpan.Zero);
669Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
691Assert.NotNull(Activity.Current);
692Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
719Assert.NotNull(Activity.Current);
720Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
748Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
749Assert.Equal("ParentId1", Activity.Current.ParentId);
750Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
751Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
778Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
779Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
780Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
808Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
809Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
810Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
839Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
840Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3");
841Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4");
869Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
878Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray());
906Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
907Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1");
936Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
937Assert.Equal(ActivityIdFormat.W3C, Activity.Current.IdFormat);
938Assert.Equal("0123456789abcdef0123456789abcdef", Activity.Current.TraceId.ToHexString());
939Assert.Equal("0123456789abcdef", Activity.Current.ParentSpanId.ToHexString());
940Assert.Equal("TraceState1", Activity.Current.TraceStateString);
942Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
943Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
1003Assert.Null(Activity.Current);
1014Assert.NotNull(Activity.Current);
1015Assert.True(Activity.Current.Recorded);
1030parentSpanId = Activity.Current.ParentSpanId.ToHexString();
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.Engine.UnitTests (1)
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 (2)
System.Diagnostics.DiagnosticSource (14)
System.Net.Http (4)
System.Net.NameResolution (1)
System.Net.Sockets (1)