1 write to SpanId
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
74SpanId = record.SpanId.ToHexString();
17 references to SpanId
Aspire.Dashboard (13)
Components\Controls\StructuredLogDetails.razor.cs (2)
101if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 103_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId });
Components\Pages\StructuredLogs.razor.cs (6)
545if (string.IsNullOrEmpty(logEntry.SpanId) || string.IsNullOrEmpty(logEntry.TraceId)) 556return ViewModel.HasGenAISpan(logEntry.TraceId, logEntry.SpanId); 563logEntry.SpanId, 572var span = TelemetryRepository.GetSpan(logEntry.TraceId, logEntry.SpanId)!; 607foreach (var l in logs.Items.DistinctBy(l => (l.SpanId, l.TraceId))) 609var span = TelemetryRepository.GetSpan(l.TraceId, l.SpanId);
Components_Pages_StructuredLogs_razor.g.cs (1)
1726DashboardUrls.TraceDetailUrl(context.TraceId, context.SpanId)
Model\Otlp\SpanWaterfallViewModel.cs (1)
131var groupedLogs = logs.GroupBy(l => l.SpanId).ToDictionary(l => l.Key, g => g.ToList());
Model\TelemetryExportService.cs (2)
273SpanId = string.IsNullOrEmpty(log.SpanId) ? null : log.SpanId,
Otlp\Model\OtlpLogEntry.cs (1)
132KnownStructuredLogFields.SpanIdField => log.SpanId,
Aspire.Dashboard.Tests (4)
Integration\OtlpHttpJsonTests.cs (1)
506Assert.Equal("eee19b7ec3c1b174", log.SpanId);
TelemetryRepositoryTests\LogTests.cs (3)
75Assert.Equal("546573745370616e4964", resource.SpanId); 934Assert.Equal("546573745370616e4964", resource.SpanId); 957Assert.Equal("546573745370616e4964", resource.SpanId);