1 write to Parent
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
815
Parent
= _previousActiveActivity;
32 references to Parent
aspire (1)
Telemetry\AspireCliTelemetry.cs (1)
244
activity = activity.
Parent
;
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
1157
Assert.Same(activities[activities.Count - 1], activities[i].
Parent
);
1716
Assert.All(childActivities, activity => Assert.Same(invokeAgent, activity.
Parent
));
1991
Assert.Same(orchestrateTools, executeTool.
Parent
);
System.Diagnostics.DiagnosticSource (28)
System\Diagnostics\Activity.cs (27)
288
else if (
Parent
!= null)
290
Interlocked.CompareExchange(ref _parentId,
Parent
.Id, null);
383
for (Activity? activity = this; activity != null; activity = activity.
Parent
)
406
activity = activity.
Parent
;
692
else if (
Parent
!= null)
722
else if (
Parent
!= null)
789
/// <item>Sets <see cref="
Parent
"/> to hold <see cref="Current"/>.</item>
827
Parent
!= null ?
Parent
.IdFormat :
848
/// Stops activity: sets <see cref="Current"/> to <see cref="
Parent
"/>.
895
for (Activity? activity = this; activity != null; activity = activity.
Parent
)
1002
else if (
Parent
!= null &&
Parent
.IdFormat == ActivityIdFormat.W3C)
1004
parentSpanId =
Parent
.SpanId.ToHexString();
1360
if (
Parent
!= null)
1363
Debug.Assert(!string.IsNullOrEmpty(
Parent
.Id));
1364
ret = AppendSuffix(
Parent
.Id, Interlocked.Increment(ref
Parent
._currentChildId).ToString(), '.');
1460
if (
Parent
!= null &&
Parent
.IdFormat == ActivityIdFormat.W3C)
1462
_traceId =
Parent
.TraceId.ToHexString();
1484
if (
Parent
!= null)
1486
ActivityTraceFlags =
Parent
.ActivityTraceFlags;
1509
if (
Parent
is not null)
1511
if ((
Parent
.ActivityTraceFlags & ActivityTraceFlags.RandomTraceId) != 0)
1644
_activity = _activity.
Parent
;
2280
public Activity? Parent => activity.
Parent
;
System\Diagnostics\PassThroughPropagator.cs (1)
45
while (activity?.
Parent
is Activity parent)