4 writes to ParentSpanId
Aspire.Dashboard (2)
Otlp\Model\OtlpSpan.cs (1)
79ParentSpanId = item.ParentSpanId,
Otlp\Storage\TelemetryRepository.cs (1)
1189ParentSpanId = span.ParentSpanId?.ToHexString(),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
317ParentSpanId = parentSpanId,
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
317ParentSpanId = parentSpanId,
11 references to ParentSpanId
Aspire.Dashboard (11)
Components\Controls\SpanDetails.razor.cs (2)
96if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId)) 98_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = _viewModel.Span.ParentSpanId });
Otlp\Model\OtlpSpan.cs (5)
48public static IEnumerable<OtlpSpan> GetChildSpans(OtlpSpan parentSpan, OtlpSpanCollection spans) => spans.Where(s => s.ParentSpanId == parentSpan.SpanId); 54if (string.IsNullOrEmpty(ParentSpanId)) 59if (Trace.Spans.TryGetValue(ParentSpanId, out var span)) 79ParentSpanId = item.ParentSpanId, 124return $@"SpanId = {SpanId}, StartTime = {StartTime.ToLocalTime():h:mm:ss.fff tt}, ParentSpanId = {ParentSpanId}, Application = {Source.ApplicationKey}, UninstrumentedPeerApplication = {UninstrumentedPeer?.ApplicationKey}, TraceId = {Trace.TraceId}";
Otlp\Model\OtlpTrace.cs (4)
79throw new InvalidOperationException($"Circular loop detected for span '{span.SpanId}' with parent '{span.ParentSpanId}'."); 82if (string.IsNullOrEmpty(span.ParentSpanId)) 88if (string.IsNullOrEmpty(existingSpan.ParentSpanId)) 113if (string.IsNullOrEmpty(span.ParentSpanId))