1 write to TraceId
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
75
TraceId
= record.TraceId.ToHexString();
19 references to TraceId
Aspire.Dashboard (15)
Components\Controls\StructuredLogDetails.razor.cs (3)
97
if (HasTelemetryBaggage(_viewModel.LogEntry.
TraceId
))
99
_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.
TraceId
});
126
Parameters = { ["TraceId"] = _viewModel.LogEntry.
TraceId
}
Components\Pages\StructuredLogs.razor.cs (6)
545
if (string.IsNullOrEmpty(logEntry.SpanId) || string.IsNullOrEmpty(logEntry.
TraceId
))
556
return ViewModel.HasGenAISpan(logEntry.
TraceId
, logEntry.SpanId);
562
logEntry.
TraceId
,
572
var span = TelemetryRepository.GetSpan(logEntry.
TraceId
, logEntry.SpanId)!;
607
foreach (var l in logs.Items.DistinctBy(l => (l.SpanId, l.
TraceId
)))
609
var span = TelemetryRepository.GetSpan(l.
TraceId
, l.SpanId);
Components_Pages_StructuredLogs_razor.g.cs (3)
1715
if (!string.IsNullOrEmpty(context.
TraceId
))
1726
DashboardUrls.TraceDetailUrl(context.
TraceId
, context.SpanId)
1745
__builder6.AddContent(185, OtlpHelpers.ToShortenedId(context.
TraceId
)
Model\TelemetryExportService.cs (2)
272
TraceId = string.IsNullOrEmpty(log.
TraceId
) ? null : log.
TraceId
,
Otlp\Model\OtlpLogEntry.cs (1)
131
KnownStructuredLogFields.TraceIdField => log.
TraceId
,
Aspire.Dashboard.Tests (4)
Integration\OtlpHttpJsonTests.cs (1)
505
Assert.Equal("5b8efff798038103d269b633813fc60c", log.
TraceId
);
TelemetryRepositoryTests\LogTests.cs (3)
76
Assert.Equal("5465737454726163654964", resource.
TraceId
);
935
Assert.Equal("5465737454726163654964", resource.
TraceId
);
958
Assert.Equal("5465737454726163654964", resource.
TraceId
);