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