21 references to ToHexString
Microsoft.AspNetCore.Hosting.Tests (4)
HostingApplicationDiagnosticsTests.cs (4)
940Assert.Equal("0123456789abcdef", Activity.Current.ParentSpanId.ToHexString()); 962parentSpanId = activity.ParentSpanId.ToHexString(); 985Assert.Equal("40a8bd87c078cb4c", options.Parent.SpanId.ToHexString()); 1031parentSpanId = Activity.Current.ParentSpanId.ToHexString();
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
151Assert.Equal("0123456789abcdef", invocationActivity.ParentSpanId.ToHexString()); 277Assert.Equal("0123456789abcdef", invocationActivity.ParentSpanId.ToHexString());
Microsoft.Extensions.Logging (2)
LoggerFactoryScopeProvider.cs (2)
296ActivityIdFormat.W3C => activity.SpanId.ToHexString(), 316ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(),
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
82activitySpanId = activity.SpanId.ToHexString();
Microsoft.Extensions.Telemetry (2)
Logging\Import\LoggerFactoryScopeProvider.cs (2)
314ActivityIdFormat.W3C => activity.SpanId.ToHexString(), 334ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(),
Microsoft.Extensions.Telemetry.Tests (2)
Logging\ExtendedLoggerFactoryTests.cs (2)
648ActivityIdFormat.W3C => activity.SpanId.ToHexString(), 672ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(),
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\Activity.cs (8)
727_parentSpanId = spanId.ToHexString(); 916string spanId = activitySpanId.ToHexString(); 987parentSpanId = ActivitySpanId.CreateFromString(_parentId.AsSpan(36, 16)).ToHexString(); 993parentSpanId = Parent.SpanId.ToHexString(); 1304_spanId = ActivitySpanId.CreateRandom().ToHexString(); 2128public override string ToString() => ToHexString(); 2150return ToHexString().GetHashCode(); 2184ActivityTraceId.SetSpanFromHexChars(ToHexString().AsSpan(), destination);