1 write to Parent
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
819
Parent
= _previousActiveActivity;
37 references to Parent
aspire (2)
Telemetry\ProfilingTelemetry.cs (2)
743
for (var current = activity; current is not null; current = current.
Parent
)
756
for (var current = activity; current is not null; current = current.
Parent
)
Aspire.Hosting (1)
Diagnostics\ProfilingTelemetry.cs (1)
680
ambientActivity.
Parent
is null &&
Aspire.Hosting.RemoteHost (3)
Diagnostics\RemoteHostProfilingTelemetry.cs (3)
275
ambientActivity.
Parent
is null &&
342
for (var current = activity; current is not null; current = current.
Parent
)
355
for (var current = activity; current is not null; current = current.
Parent
)
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
1157
Assert.Same(activities[activities.Count - 1], activities[i].
Parent
);
1869
Assert.All(childActivities, activity => Assert.Same(invokeAgent, activity.
Parent
));
2144
Assert.Same(orchestrateTools, executeTool.
Parent
);
System.Diagnostics.DiagnosticSource (28)
System\Diagnostics\Activity.cs (27)
292
else if (
Parent
!= null)
294
Interlocked.CompareExchange(ref _parentId,
Parent
.Id, null);
387
for (Activity? activity = this; activity != null; activity = activity.
Parent
)
410
activity = activity.
Parent
;
696
else if (
Parent
!= null)
726
else if (
Parent
!= null)
793
/// <item>Sets <see cref="
Parent
"/> to hold <see cref="Current"/>.</item>
831
Parent
!= null ?
Parent
.IdFormat :
852
/// Stops activity: sets <see cref="Current"/> to <see cref="
Parent
"/>.
899
for (Activity? activity = this; activity != null; activity = activity.
Parent
)
1006
else if (
Parent
!= null &&
Parent
.IdFormat == ActivityIdFormat.W3C)
1008
parentSpanId =
Parent
.SpanId.ToHexString();
1367
if (
Parent
!= null)
1370
Debug.Assert(!string.IsNullOrEmpty(
Parent
.Id));
1371
ret = AppendSuffix(
Parent
.Id, Interlocked.Increment(ref
Parent
._currentChildId).ToString(), '.');
1467
if (
Parent
!= null &&
Parent
.IdFormat == ActivityIdFormat.W3C)
1469
_traceId =
Parent
.TraceId.ToHexString();
1491
if (
Parent
!= null)
1493
ActivityTraceFlags =
Parent
.ActivityTraceFlags;
1516
if (
Parent
is not null)
1518
if ((
Parent
.ActivityTraceFlags & ActivityTraceFlags.RandomTraceId) != 0)
1651
_activity = _activity.
Parent
;
2310
public Activity? Parent => activity.
Parent
;
System\Diagnostics\PassThroughPropagator.cs (1)
45
while (activity?.
Parent
is Activity parent)