5 writes to ParentSpanId
Aspire.Dashboard (3)
Otlp\Model\OtlpSpan.cs (1)
88ParentSpanId = item.ParentSpanId,
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (1)
791ParentSpanId = record.ParentSpanId,
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
929ParentSpanId = span.ParentSpanId?.ToHexString(),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
280ParentSpanId = parentSpanId,
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
280ParentSpanId = parentSpanId,
27 references to ParentSpanId
Aspire.Dashboard (26)
Components\Controls\SpanDetails.razor.cs (2)
135if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId)) 137_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = _viewModel.Span.ParentSpanId });
Model\TelemetryExportService.cs (2)
391ParentSpanId = string.IsNullOrEmpty(span.ParentSpanId) ? null : span.ParentSpanId,
Model\TraceHelpers.cs (2)
23if (string.IsNullOrEmpty(item.ParentSpanId) || !trace.Spans.TryGetValue(item.ParentSpanId, out var parentSpan))
Otlp\Model\OtlpSpan.cs (5)
51public static IEnumerable<OtlpSpan> GetChildSpans(OtlpSpan parentSpan, OtlpSpanCollection spans) => spans.Where(s => s.ParentSpanId == parentSpan.SpanId); 63if (string.IsNullOrEmpty(ParentSpanId)) 68if (Trace.Spans.TryGetValue(ParentSpanId, out var span)) 88ParentSpanId = item.ParentSpanId, 164return $@"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)
61throw new InvalidOperationException($"Circular loop detected for span '{span.SpanId}' with parent '{span.ParentSpanId}'."); 66if (string.IsNullOrEmpty(span.ParentSpanId)) 72if (string.IsNullOrEmpty(existingSpan.ParentSpanId)) 102if (string.IsNullOrEmpty(span.ParentSpanId))
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (11)
424var incomingPrimaryIsRoot = string.IsNullOrEmpty(incomingPrimarySpan.ParentSpanId); 454string.IsNullOrEmpty(span.ParentSpanId), 457string.IsNullOrEmpty(primarySpan.ParentSpanId), 508parameters[2].Value = span.ParentSpanId ?? (object)DBNull.Value; 548.Where(span => span.ParentSpanId is not null) 549.Select(span => (span.TraceId, ParentSpanId: span.ParentSpanId!)) 579if (span.ParentSpanId is not null && 580ingestionState.ExistingSpans.TryGetValue((span.TraceId, span.ParentSpanId), out var existingParent) && 582updatedExistingParents.Add((span.TraceId, span.ParentSpanId))) 588SpanId = span.ParentSpanId 652var resourceOrderTicks = GetResourceOrderTicks(span.ParentSpanId, span.StartTime.Ticks, pendingSpan.ReceivedTimestampTicks);
Aspire.Dashboard.Tests (1)
Integration\OtlpHttpJsonTests.cs (1)
543Assert.Equal("eee19b7ec3c1b173", span.ParentSpanId);