4 writes to _parentId
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
283
Interlocked.CompareExchange(ref
_parentId
, parentId, null);
287
Interlocked.CompareExchange(ref
_parentId
, Parent.Id, null);
700
_parentId
= parentId;
1225
activity.
_parentId
= parentId;
17 references to _parentId
System.Diagnostics.DiagnosticSource (17)
System\Diagnostics\Activity.cs (17)
271
if (
_parentId
== null)
291
return
_parentId
;
802
if (
_parentId
== null && _parentSpanId is null)
823
_parentId
== null ? DefaultIdFormat :
824
IsW3CId(
_parentId
) ? ActivityIdFormat.W3C :
983
if (
_parentId
!= null && IsW3CId(
_parentId
))
987
parentSpanId = ActivitySpanId.CreateFromString(
_parentId
.AsSpan(36, 16)).ToHexString();
1429
else if (
_parentId
!= null && IsW3CId(
_parentId
))
1433
_traceId = ActivityTraceId.CreateFromString(
_parentId
.AsSpan(3, 32)).ToHexString();
1453
else if (
_parentId
!= null && IsW3CId(
_parentId
))
1455
if (HexConverter.IsHexLowerChar(
_parentId
[53]) && HexConverter.IsHexLowerChar(
_parentId
[54]))
1457
_w3CIdFlags = (byte)(ActivityTraceId.HexByteFromChars(
_parentId
[53],
_parentId
[54]) | ActivityTraceFlagsIsSet);