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