1 write to SpanId
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
73SpanId = record.SpanId.ToHexString();
18 references to SpanId
Aspire.Dashboard (14)
Components\Controls\StructuredLogDetails.razor.cs (2)
114if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 116_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());
Model\TelemetryExportService.cs (2)
226SpanId = string.IsNullOrEmpty(log.SpanId) ? null : log.SpanId,
Otlp\Model\OtlpLogEntry.cs (1)
131KnownStructuredLogFields.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);