21 writes to Current
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Tests (8)
Microsoft.Extensions.AI (2)
Stress.ApiService (4)
System.Net.Http (1)
System.Net.NameResolution (1)
System.Net.Sockets (1)
127 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)
206measurementActivity = Activity.Current;
492Assert.Null(Activity.Current);
532Assert.Null(Activity.Current);
563Assert.Null(Activity.Current);
600Assert.NotNull(Activity.Current);
620Assert.NotNull(Activity.Current);
621Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
627Assert.NotNull(Activity.Current);
644Assert.NotNull(Activity.Current);
645Assert.True(Activity.Current.Duration > TimeSpan.Zero);
646Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
668Assert.NotNull(Activity.Current);
669Assert.True(Activity.Current.Duration > TimeSpan.Zero);
670Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
692Assert.NotNull(Activity.Current);
693Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
720Assert.NotNull(Activity.Current);
721Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
749Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
750Assert.Equal("ParentId1", Activity.Current.ParentId);
751Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
752Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
779Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
780Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
781Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
809Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
810Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
811Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
840Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
841Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value3");
842Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value4");
870Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
879Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray());
907Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
908Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1/1");
937Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName);
938Assert.Equal(ActivityIdFormat.W3C, Activity.Current.IdFormat);
939Assert.Equal("0123456789abcdef0123456789abcdef", Activity.Current.TraceId.ToHexString());
940Assert.Equal("0123456789abcdef", Activity.Current.ParentSpanId.ToHexString());
941Assert.Equal("TraceState1", Activity.Current.TraceStateString);
943Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key1" && pair.Value == "value1");
944Assert.Contains(Activity.Current.Baggage, pair => pair.Key == "Key2" && pair.Value == "value2");
1004Assert.Null(Activity.Current);
1015Assert.NotNull(Activity.Current);
1016Assert.True(Activity.Current.Recorded);
1031parentSpanId = 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.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)