16 references to ToHexString
Microsoft.AspNetCore.Hosting.Tests (3)
HostingApplicationDiagnosticsTests.cs (3)
934Assert.Equal("0123456789abcdef0123456789abcdef", Activity.Current.TraceId.ToHexString()); 958traceId = activity.TraceId.ToHexString(); 979Assert.Equal("35aae61e3e99044eb5ea5007f2cd159b", options.TraceId.ToHexString());
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
150Assert.Equal("0123456789abcdef0123456789abcdef", invocationActivity.TraceId.ToHexString()); 276Assert.Equal("0123456789abcdef0123456789abcdef", invocationActivity.TraceId.ToHexString());
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
306ActivityIdFormat.W3C => activity.TraceId.ToHexString(),
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
81activityTraceId = activity.TraceId.ToHexString();
Microsoft.Extensions.Telemetry (1)
Logging\Import\LoggerFactoryScopeProvider.cs (1)
308ActivityIdFormat.W3C => activity.TraceId.ToHexString(),
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerFactoryTests.cs (1)
660ActivityIdFormat.W3C => activity.TraceId.ToHexString(),
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Activity.cs (7)
726_traceId = traceId.ToHexString(); // The child will share the parent's traceId. 1291_traceId = id.ToHexString(); 1427_traceId = Parent.TraceId.ToHexString(); 1433_traceId = ActivityTraceId.CreateFromString(_parentId.AsSpan(3, 32)).ToHexString(); 1932public override string ToString() => ToHexString(); 1954return ToHexString().GetHashCode(); 2000ActivityTraceId.SetSpanFromHexChars(ToHexString().AsSpan(), destination);