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