4 writes to ParentSpanId
Aspire.Dashboard (2)
Otlp\Model\OtlpSpan.cs (1)
85ParentSpanId = item.ParentSpanId,
Otlp\Storage\TelemetryRepository.cs (1)
1226ParentSpanId = span.ParentSpanId?.ToHexString(),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
318ParentSpanId = parentSpanId,
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
318ParentSpanId = parentSpanId,
11 references to ParentSpanId
Aspire.Dashboard (11)
Components\Controls\SpanDetails.razor.cs (2)
111if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId)) 113_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); 60if (string.IsNullOrEmpty(ParentSpanId)) 65if (Trace.Spans.TryGetValue(ParentSpanId, out var span)) 85ParentSpanId = item.ParentSpanId, 130return $@"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)
80throw new InvalidOperationException($"Circular loop detected for span '{span.SpanId}' with parent '{span.ParentSpanId}'."); 83if (string.IsNullOrEmpty(span.ParentSpanId)) 89if (string.IsNullOrEmpty(existingSpan.ParentSpanId)) 119if (string.IsNullOrEmpty(span.ParentSpanId))