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