1 write to SpanId
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
63SpanId = record.SpanId.ToHexString();
15 references to SpanId
Aspire.Dashboard (12)
Components\Controls\StructuredLogDetails.razor.cs (2)
94if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 96_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId });
Components\Pages\StructuredLogs.razor.cs (6)
546if (string.IsNullOrEmpty(logEntry.SpanId) || string.IsNullOrEmpty(logEntry.TraceId)) 557return ViewModel.HasGenAISpan(logEntry.TraceId, logEntry.SpanId); 564logEntry.SpanId, 573var span = TelemetryRepository.GetSpan(logEntry.TraceId, logEntry.SpanId)!; 610foreach (var l in logs.Items.DistinctBy(l => (l.SpanId, l.TraceId))) 612var span = TelemetryRepository.GetSpan(l.TraceId, l.SpanId);
Components_Pages_StructuredLogs_razor.g.cs (1)
1726DashboardUrls.TraceDetailUrl(context.TraceId, context.SpanId)
Model\Assistant\AIHelpers.cs (1)
342["span_id"] = OtlpHelpers.ToShortenedId(l.SpanId),
Model\Otlp\SpanWaterfallViewModel.cs (1)
131var groupedLogs = logs.GroupBy(l => l.SpanId).ToDictionary(l => l.Key, g => g.ToList());
Otlp\Model\OtlpLogEntry.cs (1)
118KnownStructuredLogFields.SpanIdField => log.SpanId,
Aspire.Dashboard.Tests (3)
TelemetryRepositoryTests\LogTests.cs (3)
75Assert.Equal("546573745370616e4964", resource.SpanId); 887Assert.Equal("546573745370616e4964", resource.SpanId); 910Assert.Equal("546573745370616e4964", resource.SpanId);