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