19 writes to Current
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Tests (8)
Stress.ApiService (4)
System.Net.Http (1)
System.Net.NameResolution (1)
System.Net.Sockets (1)
126 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)
201measurementActivity = Activity.Current;
487Assert.Null(Activity.Current);
527Assert.Null(Activity.Current);
558Assert.Null(Activity.Current);
595Assert.NotNull(Activity.Current);
615Assert.NotNull(Activity.Current);
616Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
622Assert.NotNull(Activity.Current);
639Assert.NotNull(Activity.Current);
640Assert.True(Activity.Current.Duration > TimeSpan.Zero);
641Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
663Assert.NotNull(Activity.Current);
664Assert.True(Activity.Current.Duration > TimeSpan.Zero);
665Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
687Assert.NotNull(Activity.Current);
688Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
715Assert.NotNull(Activity.Current);
716Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
744Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
745Assert.Equal("ParentId1", Activity.Current.ParentId);
746Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
747Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
774Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
775Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
776Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
804Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
805Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
806Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
835Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
836Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3");
837Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4");
865Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
874Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray());
902Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
903Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1");
932Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
933Assert.Equal(ActivityIdFormat.W3C, Activity.Current.IdFormat);
934Assert.Equal("0123456789abcdef0123456789abcdef", Activity.Current.TraceId.ToHexString());
935Assert.Equal("0123456789abcdef", Activity.Current.ParentSpanId.ToHexString());
936Assert.Equal("TraceState1", Activity.Current.TraceStateString);
938Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
939Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
999Assert.Null(Activity.Current);
1010Assert.NotNull(Activity.Current);
1011Assert.True(Activity.Current.Recorded);
1026parentSpanId = Activity.Current.ParentSpanId.ToHexString();
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (14)
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.Logging (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Telemetry (1)
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)