1 write to TraceId
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
74
TraceId
= record.TraceId.ToHexString();
20 references to TraceId
Aspire.Dashboard (16)
Components\Controls\StructuredLogDetails.razor.cs (3)
110
if (HasTelemetryBaggage(_viewModel.LogEntry.
TraceId
))
112
_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.
TraceId
});
139
Parameters = { ["TraceId"] = _viewModel.LogEntry.
TraceId
}
Components\Pages\StructuredLogs.razor.cs (6)
546
if (string.IsNullOrEmpty(logEntry.SpanId) || string.IsNullOrEmpty(logEntry.
TraceId
))
557
return ViewModel.HasGenAISpan(logEntry.
TraceId
, logEntry.SpanId);
563
logEntry.
TraceId
,
573
var span = TelemetryRepository.GetSpan(logEntry.
TraceId
, logEntry.SpanId)!;
610
foreach (var l in logs.Items.DistinctBy(l => (l.SpanId, l.
TraceId
)))
612
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\Assistant\AIHelpers.cs (1)
343
["trace_id"] = OtlpHelpers.ToShortenedId(l.
TraceId
),
Model\TelemetryExportService.cs (2)
225
TraceId = string.IsNullOrEmpty(log.
TraceId
) ? null : log.
TraceId
,
Otlp\Model\OtlpLogEntry.cs (1)
130
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
);