35 references to SpanId
Aspire.Cli.Tests (3)
DotNet\DotNetCliRunnerTests.cs (2)
1257runSpanId = Activity.Current!.SpanId; 1284Assert.NotEqual(processActivity.SpanId, backchannelActivity.ParentSpanId);
Telemetry\ReportedLogExportTests.cs (1)
196Assert.Equal(activity.SpanId.ToHexString(), record.GetProperty("tags").GetProperty("ai.operation.parentId").GetString());
Aspire.Dashboard.Components.Tests (1)
Pages\ResourcesTests.cs (1)
108Assert.Equal(activity.SpanId, log.SpanId);
Aspire.Dashboard.Tests (7)
Telemetry\AspireTelemetryBaseTests.cs (1)
119Assert.Equal(current?.SpanId ?? default, log.SpanId);
Telemetry\DashboardTelemetryLogExportTests.cs (1)
88Assert.Equal(activity.SpanId, log.SpanId);
Telemetry\DashboardTelemetryServiceTests.cs (4)
121Assert.Equal(parent.SpanId, initializeEvent.SpanId); 123Assert.Equal(parent.SpanId, parametersEvent.SpanId); 218Assert.Equal(activity.SpanId, errorLog.SpanId); 231Assert.Equal(activity.SpanId, log.SpanId);
Telemetry\TelemetryLoggerProviderTests.cs (1)
80Assert.Equal(current?.SpanId ?? default, log.SpanId);
Aspire.Hosting.Native.Core (1)
Diagnostics\NativeDiagnostics.cs (1)
120activity?.TraceId.ToString(), activity?.SpanId.ToString(), _timeProvider.GetUtcNow(), elapsed, ErrorType));
Aspire.Hosting.Native.Core.Tests (2)
NativeDiagnosticsTests.cs (2)
27Assert.Equal(capture.Root.SpanId, activity.ParentSpanId); 124Assert.Equal(sessionRetirement.SpanId, modelRetirement.ParentSpanId);
Aspire.Hosting.RemoteHost.Tests (3)
RemoteHostProfilingTelemetryTests.cs (3)
44Assert.Equal(startup.SpanId, activities[0].ParentSpanId); 63parentSpanId = parent.SpanId; 204var clientSpanId = clientActivity.SpanId;
Aspire.Hosting.Tests (3)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
2275var clientSpanId = clientActivity.SpanId;
Backchannel\BackchannelContractTests.cs (2)
267Assert.Equal(clientActivity.SpanId, Activity.Current.ParentSpanId); 325Assert.Equal(processActivity.SpanId, dcpActivity.ParentSpanId);
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
103var cacheKey = (parent.TraceId, parent.SpanId);
dotnet-aot (1)
parent\dotnet\Telemetry\TelemetryDiskLogger.cs (1)
80spanId: activity.SpanId.ToString(),
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\AzureMonitorTelemetrySerializer.cs (1)
53var spanId = activity.SpanId.ToHexString();
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
296ActivityIdFormat.W3C => activity.SpanId.ToHexString(),
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
101activitySpanId = activity.SpanId.ToHexString();
Microsoft.Extensions.Telemetry (2)
Logging\Import\LoggerFactoryScopeProvider.cs (1)
310ActivityIdFormat.W3C => activity.SpanId.ToHexString(),
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
79activitySpanId = activity.SpanId;
Microsoft.Extensions.Telemetry.Tests (3)
Buffering\GlobalBufferIncludeScopesTests.cs (1)
115Assert.Equal(activity.SpanId.ToHexString(), record.GetStructuredStateValue("SpanId"));
Buffering\GlobalBufferTests.cs (1)
32expectedSpanId = activity.SpanId;
Logging\ExtendedLoggerFactoryTests.cs (1)
663ActivityIdFormat.W3C => activity.SpanId.ToHexString(),
Shared (1)
LogBuffering\SerializedLogRecordFactory.cs (1)
79activitySpanId = activity.SpanId;
Stress.ApiService (1)
ProducerConsumer.cs (1)
35links.Add(new ActivityLink(new ActivityContext(item.Producer.TraceId, item.Producer.SpanId, ActivityTraceFlags.None)));
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Activity.cs (3)
788public ActivityContext Context => new ActivityContext(TraceId, SpanId, ActivityTraceFlags, TraceStateString); 1008parentSpanId = Parent.SpanId.ToHexString(); 2314public ActivitySpanId SpanId => activity.SpanId;