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