7 instantiations of ActivitySpanId
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Activity.cs (7)
921return new ActivitySpanId(_spanId); 1001return new ActivitySpanId(_parentSpanId); 1102new ActivitySpanId(spanIdSpan.ToString()), 2088return new ActivitySpanId(Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)))); 2099return new ActivitySpanId(Convert.ToHexStringLower(idData)); 2104public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivitySpanId(idData); 2111return new ActivitySpanId(idData.ToString());
23 references to ActivitySpanId
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
30internal readonly ConcurrentDictionary<(ActivityTraceId TraceId, ActivitySpanId SpanId), (Activity Activity, ProfilingSession Session)> Cache
Microsoft.Extensions.Logging.Abstractions (1)
BufferedLogRecord.cs (1)
43public virtual ActivitySpanId? ActivitySpanId => null;
Stress.ApiService (1)
TraceCreator.cs (1)
135ActivitySpanId.CreateRandom(),
System.Diagnostics.DiagnosticSource (20)
System\Diagnostics\Activity.cs (18)
709public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags = ActivityTraceFlags.None) 907public ActivitySpanId SpanId 915ActivitySpanId activitySpanId = ActivitySpanId.CreateFromString(_id.AsSpan(36, 16)); 976public ActivitySpanId ParentSpanId 987parentSpanId = ActivitySpanId.CreateFromString(_parentId.AsSpan(36, 16)).ToHexString(); 1302_spanId = ActivitySpanId.CreateRandom().ToHexString(); 2074public readonly struct ActivitySpanId : IEquatable<ActivitySpanId> 2083public static unsafe ActivitySpanId CreateRandom() 2093public static ActivitySpanId CreateFromBytes(ReadOnlySpan<byte> idData) 2104public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivitySpanId(idData); 2106public static ActivitySpanId CreateFromString(ReadOnlySpan<char> idData) 2128public static bool operator ==(ActivitySpanId spanId1, ActivitySpanId spandId2) 2132public static bool operator !=(ActivitySpanId spanId1, ActivitySpanId spandId2) 2136public bool Equals(ActivitySpanId spanId) 2142if (obj is ActivitySpanId spanId)
System\Diagnostics\ActivityContext.cs (2)
26public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string? traceState = null, bool isRemote = false) 43public ActivitySpanId SpanId { get; }