1 write to TraceId
Aspire.Dashboard (1)
Otlp\Model\OtlpTrace.cs (1)
153TraceId = OtlpHelpers.ToHexString(traceId);
27 references to TraceId
Aspire.Dashboard (6)
Components\Pages\Traces.razor.cs (1)
91tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTraceId)], trace.TraceId);
Otlp\Model\OtlpSpan.cs (1)
23public string TraceId => Trace.TraceId;
Otlp\Model\OtlpTrace.cs (2)
143throw new InvalidOperationException($"Trace {TraceId} spans not in order at index {i}."); 170return $@"TraceId = ""{TraceId}"", Spans = {Spans.Count}, StartDate = {FirstSpan.StartTime.ToLocalTime():yyyy:MM:dd}, StartTime = {FirstSpan.StartTime.ToLocalTime():h:mm:ss.fff tt}, Duration = {Duration}";
Otlp\Storage\TelemetryRepository.cs (2)
646var results = _traces.Where(t => t.TraceId.StartsWith(traceId, StringComparison.Ordinal)); 992SourceTraceId = trace.TraceId,
Aspire.Dashboard.Tests (21)
TelemetryRepositoryTests\TraceTests.cs (21)
88AssertId("1", trace.TraceId); 328AssertId("1", trace.TraceId); 405AssertId("2", trace.TraceId); 411AssertId("1", trace.TraceId); 447AssertId("1", trace.TraceId); 454AssertId("2", trace.TraceId); 502AssertId("1", trace.TraceId); 571AssertId("1", trace.TraceId); 648AssertId("1", trace.TraceId); 738AssertId("1", trace.TraceId); 822AssertId("1", trace.TraceId); 945var first = GetStringId(traces.PagedResult.Items.First().TraceId); 946var last = GetStringId(traces.PagedResult.Items.Last().TraceId); 951var actualOrder = traces.PagedResult.Items.Select(t => t.TraceId).ToList(); 952var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.FirstSpan.StartTime).Select(t => t.TraceId).ToList(); 1053AssertId("1", trace.TraceId); 1123AssertId("1", trace.TraceId); 1127AssertId("2", trace.TraceId); 1191AssertId("1", trace.TraceId); 1210AssertId("1", trace.TraceId); 1296AssertId("1", trace.TraceId);