2 writes to _spanId
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
918Interlocked.CompareExchange(ref _spanId, spanId, null); 1302_spanId = ActivitySpanId.CreateRandom().ToHexString();
9 references to _spanId
System.Diagnostics.DiagnosticSource (9)
System\Diagnostics\Activity.cs (9)
240if (_id == null && _spanId != null) 247string.Create(null, stackalloc char[128], $"00-{_traceId}-{_spanId}-{flagsChars}"); 681if (_id != null || _spanId != null) 711if (_id != null || _spanId != null) 795if (_id != null || _spanId != null) 850if (_id == null && _spanId == null) 911if (_spanId is null) 921return new ActivitySpanId(_spanId); 1051if (_id != null || _spanId != null)