4 writes to ParentSpanId
Aspire.Dashboard (2)
Otlp\Model\OtlpSpan.cs (1)
86ParentSpanId = item.ParentSpanId,
Otlp\Storage\TelemetryRepository.cs (1)
1261ParentSpanId = span.ParentSpanId?.ToHexString(),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
319ParentSpanId = parentSpanId,
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
319ParentSpanId = parentSpanId,
14 references to ParentSpanId
Aspire.Dashboard (14)
Components\Controls\SpanDetails.razor.cs (2)
157if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId)) 159_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = _viewModel.Span.ParentSpanId });
Model\Assistant\AIHelpers.cs (1)
48parent_span_id = s.ParentSpanId is { } id ? OtlpHelpers.ToShortenedId(id) : null,
Model\TraceHelpers.cs (2)
23if (string.IsNullOrEmpty(item.ParentSpanId) || !trace.Spans.TryGetValue(item.ParentSpanId, out var parentSpan))
Otlp\Model\OtlpSpan.cs (5)
49public static IEnumerable<OtlpSpan> GetChildSpans(OtlpSpan parentSpan, OtlpSpanCollection spans) => spans.Where(s => s.ParentSpanId == parentSpan.SpanId); 61if (string.IsNullOrEmpty(ParentSpanId)) 66if (Trace.Spans.TryGetValue(ParentSpanId, out var span)) 86ParentSpanId = item.ParentSpanId, 162return $@"SpanId = {SpanId}, StartTime = {StartTime.ToLocalTime():h:mm:ss.fff tt}, ParentSpanId = {ParentSpanId}, Resource = {Source.ResourceKey}, UninstrumentedPeerResource = {UninstrumentedPeer?.ResourceKey}, TraceId = {Trace.TraceId}";
Otlp\Model\OtlpTrace.cs (4)
65throw new InvalidOperationException($"Circular loop detected for span '{span.SpanId}' with parent '{span.ParentSpanId}'."); 68if (string.IsNullOrEmpty(span.ParentSpanId)) 74if (string.IsNullOrEmpty(existingSpan.ParentSpanId)) 104if (string.IsNullOrEmpty(span.ParentSpanId))