1 override of TraceIdentifier
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
191public override string TraceIdentifier
6 writes to TraceIdentifier
InMemory.FunctionalTests (1)
RequestTests.cs (1)
577context.TraceIdentifier = knownId;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
622existing.TraceIdentifier = context.TraceIdentifier;
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (4)
298httpContext.TraceIdentifier = "my-trace-id"; 455httpContext.TraceIdentifier = "my-trace-id"; 494httpContext.TraceIdentifier = "my-trace-id"; 769httpContext.TraceIdentifier = "my-trace-id";
47 references to TraceIdentifier
Aspire.Dashboard (1)
Components\Pages\Error.razor.cs (1)
18RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
ClaimsTransformation (1)
Controllers\HomeController.cs (1)
26return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
Cookies (1)
Controllers\HomeController.cs (1)
26return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
DynamicSchemes (1)
Pages\Error.cshtml.cs (1)
21RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
HostedBlazorWebassemblyApp.Server (1)
Pages\Error.cshtml.cs (1)
32RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Identity.DefaultUI.WebSite (1)
Pages\Error.cshtml.cs (1)
19RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Identity.ExternalClaims (1)
Pages\Error.cshtml.cs (1)
21RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
InMemory.FunctionalTests (5)
EventSourceTests.cs (2)
44requestIds[requestsReceived++] = context.TraceIdentifier; 152requestIds[requestsReceived++] = context.TraceIdentifier;
RequestTests.cs (3)
578await context.Response.WriteAsync(context.TraceIdentifier); 594Assert.Equal(identifierLength, Encoding.ASCII.GetByteCount(context.TraceIdentifier)); 596await context.Response.WriteAsync(context.TraceIdentifier);
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
1411traceId = context.TraceIdentifier;
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
518_traceIdentifier = httpContext.TraceIdentifier;
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostTests.cs (3)
880Assert.False(string.IsNullOrWhiteSpace(httpContext.TraceIdentifier)); 881Assert.Same(httpContext.TraceIdentifier, featuresTraceIdentifier); 960Assert.Throws<ObjectDisposedException>(() => capturedContext.TraceIdentifier);
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (1)
514HttpConnectionDispatcher.Log.ConnectionAlreadyActive(dispatcherLogger, ConnectionId, HttpContext!.TraceIdentifier);
Internal\HttpConnectionDispatcher.cs (3)
587Log.ConnectionAlreadyActive(_logger, connection.ConnectionId, context.TraceIdentifier); 622existing.TraceIdentifier = context.TraceIdentifier; 758newHttpContext.TraceIdentifier = context.TraceIdentifier;
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
823Assert.Equal("requestid", connectionHttpContext.TraceIdentifier);
Microsoft.AspNetCore.Http.Extensions (1)
DefaultProblemDetailsWriter.cs (1)
58var traceId = Activity.Current?.Id ?? httpContext.TraceIdentifier;
Microsoft.AspNetCore.Http.Extensions.Tests (16)
ProblemDetailsDefaultWriterTest.cs (14)
29var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 66var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 98var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 132var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 174var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 214var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 251var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 294var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 337var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 380var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 423var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 464var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 511var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier; 552var expectedTraceId = Activity.Current?.Id ?? context.TraceIdentifier;
RequestDelegateFactoryTests.cs (1)
2044return ValueTask.FromResult(new TraceIdentifier(context.TraceIdentifier));
RequestDelegateGenerator\SharedTypes.cs (1)
536return ValueTask.FromResult(new TraceIdentifier(context.TraceIdentifier));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
536return ValueTask.FromResult(new TraceIdentifier(context.TraceIdentifier));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
37RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
37RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\DefaultProblemDetailsFactory.cs (1)
105var traceId = Activity.Current?.Id ?? httpContext?.TraceIdentifier;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.cs (1)
122/// The request id. <seealso cref="HttpContext.TraceIdentifier"/>
MvcFormSample (1)
Controllers\HomeController.cs (1)
48return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
PathSchemeSelection (1)
Controllers\HomeController.cs (1)
26return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
StaticFilesAuth (1)
Controllers\HomeController.cs (1)
24return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });