7 instantiations of OtlpTrace
Aspire.Dashboard (2)
Otlp\Model\OtlpTrace.cs (1)
159
var newTrace = new
OtlpTrace
(trace.Key);
Otlp\Storage\TelemetryRepository.cs (1)
802
trace = new
OtlpTrace
(span.TraceId.Memory);
Aspire.Dashboard.Tests (5)
Model\SpanWaterfallViewModelTests.cs (1)
22
var trace = new
OtlpTrace
(new byte[] { 1, 2, 3 });
Model\TraceHelpersTests.cs (4)
20
var trace = new
OtlpTrace
(new byte[] { 1, 2, 3 });
42
var trace = new
OtlpTrace
(new byte[] { 1, 2, 3 });
69
var trace = new
OtlpTrace
(new byte[] { 1, 2, 3 });
97
var trace = new
OtlpTrace
(new byte[] { 1, 2, 3 });
51 references to OtlpTrace
Aspire.Dashboard (38)
Components\Pages\TraceDetail.razor.cs (4)
25
private
OtlpTrace
? _trace;
225
var traceCache = new Dictionary<string,
OtlpTrace
>(StringComparer.Ordinal);
244
private SpanLinkViewModel CreateLinkViewModel(string traceId, string spanId, KeyValuePair<string, string>[] attributes, Dictionary<string,
OtlpTrace
> traceCache)
246
ref
var
trace = ref CollectionsMarshal.GetValueRefOrAddDefault(traceCache, traceId, out _);
Components\Pages\Traces.razor.cs (4)
41
private FluentDataGrid<
OtlpTrace
> _dataGrid = null!;
88
private string GetNameTooltip(
OtlpTrace
trace)
111
private async ValueTask<GridItemsProviderResult<
OtlpTrace
>> GetData(GridItemsProviderRequest<
OtlpTrace
> request)
Model\Otlp\SpanWaterfallViewModel.cs (1)
121
public static List<SpanWaterfallViewModel> Create(
OtlpTrace
trace, TraceDetailState state)
Model\TraceHelpers.cs (2)
13
public static void VisitSpans<TState>(
OtlpTrace
trace, Func<OtlpSpan, TState, TState> spanAction, TState state)
46
public static IEnumerable<OrderedApplication> GetOrderedApplications(
OtlpTrace
trace)
Model\TracesViewModel.cs (2)
15
private PagedResult<
OtlpTrace
>? _traces;
75
public PagedResult<
OtlpTrace
> GetTraces()
Otlp\Model\OtlpSpan.cs (1)
24
public
OtlpTrace
Trace { get; }
Otlp\Model\OtlpTrace.cs (3)
157
public static
OtlpTrace
Clone(
OtlpTrace
trace)
159
var
newTrace = new OtlpTrace(trace.Key);
Otlp\Storage\TelemetryRepository.cs (21)
45
private readonly CircularBuffer<
OtlpTrace
> _traces;
70
private void TracesItemRemovedForCapacity(
OtlpTrace
trace)
494
PagedResult = PagedResult<
OtlpTrace
>.Empty,
552
var copyFunc = static (
OtlpTrace
t) =>
OtlpTrace
.Clone(t);
577
foreach (
var
trace in _traces)
626
public
OtlpTrace
? GetTrace(string traceId)
640
private
OtlpTrace
? GetTraceUnsynchronized(string traceId)
647
var
trace = results.SingleOrDefault();
648
return trace is not null ?
OtlpTrace
.Clone(trace) : null;
660
var
trace = GetTraceUnsynchronized(traceId);
689
private static bool HasApplication(
OtlpTrace
t, ApplicationKey applicationKey)
786
OtlpTrace
? lastTrace = null;
792
OtlpTrace
? trace;
837
var
currentTrace = _traces[i];
859
var
currentTrace = _traces[i];
907
static bool TryGetTraceById(CircularBuffer<
OtlpTrace
> traces, ReadOnlyMemory<byte> traceId, [NotNullWhen(true)] out
OtlpTrace
? trace)
930
var
trace = _traces[i];
948
foreach (
var
trace in _traces)
976
private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span,
OtlpTrace
trace, OtlpScope scope, OtlpContext context)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289
public static OtlpSpan CreateSpan(OtlpApplication app,
OtlpTrace
trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)
Aspire.Dashboard.Tests (12)
Model\SpanWaterfallViewModelTests.cs (1)
22
var
trace = new OtlpTrace(new byte[] { 1, 2, 3 });
Model\TraceHelpersTests.cs (4)
20
var
trace = new OtlpTrace(new byte[] { 1, 2, 3 });
42
var
trace = new OtlpTrace(new byte[] { 1, 2, 3 });
69
var
trace = new OtlpTrace(new byte[] { 1, 2, 3 });
97
var
trace = new OtlpTrace(new byte[] { 1, 2, 3 });
TelemetryRepositoryTests\TraceTests.cs (6)
754
var
trace1 = repository.GetTrace(GetHexId("1"))!;
755
var
trace2 = repository.GetTrace(GetHexId("1"))!;
820
var
trace = Assert.Single(traces.PagedResult.Items);
873
var
trace = Assert.Single(traces.PagedResult.Items);
1337
var
trace = Assert.Single(repository.GetTraces(request).PagedResult.Items);
1516
var
trace = Assert.Single(traces.PagedResult.Items);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289
public static OtlpSpan CreateSpan(OtlpApplication app,
OtlpTrace
trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)