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