5 instantiations of ActivityTraceId
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (5)
938return new ActivityTraceId(_traceId); 1101new ActivityTraceId(traceIdSpan.ToString()), 1906return new ActivityTraceId(Convert.ToHexStringLower(idData)); 1911public static ActivityTraceId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivityTraceId(idData); 1918return new ActivityTraceId(idData.ToString());
37 references to ActivityTraceId
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)
48public virtual ActivityTraceId? ActivityTraceId => null;
Stress.ApiService (1)
TraceCreator.cs (1)
134ActivityTraceId.CreateRandom(),
System.Diagnostics.DiagnosticSource (34)
System\Diagnostics\Activity.cs (27)
709public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags = ActivityTraceFlags.None) 929public ActivityTraceId TraceId 1015public static Func<ActivityTraceId>? TraceIdGenerator { get; set; } 1094if (!ActivityTraceId.IsLowerCaseHexAndNotAllZeros(traceIdSpan) || !ActivityTraceId.IsLowerCaseHexAndNotAllZeros(spanIdSpan) || 1103(ActivityTraceFlags)ActivityTraceId.HexByteFromChars(traceParent[53], traceParent[54]), 1289Func<ActivityTraceId>? traceIdGenerator = TraceIdGenerator; 1290ActivityTraceId id = traceIdGenerator == null ? ActivityTraceId.CreateRandom() : traceIdGenerator(); 1433_traceId = ActivityTraceId.CreateFromString(_parentId.AsSpan(3, 32)).ToHexString(); 1457_w3CIdFlags = (byte)(ActivityTraceId.HexByteFromChars(_parentId[53], _parentId[54]) | ActivityTraceFlagsIsSet); 1885public readonly struct ActivityTraceId : IEquatable<ActivityTraceId> 1894public static ActivityTraceId CreateRandom() 1900public static ActivityTraceId CreateFromBytes(ReadOnlySpan<byte> idData) 1911public static ActivityTraceId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivityTraceId(idData); 1913public static ActivityTraceId CreateFromString(ReadOnlySpan<char> idData) 1915if (idData.Length != 32 || !ActivityTraceId.IsLowerCaseHexAndNotAllZeros(idData)) 1934public static bool operator ==(ActivityTraceId traceId1, ActivityTraceId traceId2) 1938public static bool operator !=(ActivityTraceId traceId1, ActivityTraceId traceId2) 1942public bool Equals(ActivityTraceId traceId) 1948if (obj is ActivityTraceId traceId) 2000ActivityTraceId.SetSpanFromHexChars(ToHexString().AsSpan(), destination); 2086ActivityTraceId.SetToRandomBytes(new Span<byte>(&id, sizeof(ulong))); 2108if (idData.Length != 16 || !ActivityTraceId.IsLowerCaseHexAndNotAllZeros(idData)) 2182ActivityTraceId.SetSpanFromHexChars(ToHexString().AsSpan(), destination);
System\Diagnostics\ActivityContext.cs (2)
26public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string? traceState = null, bool isRemote = false) 38public ActivityTraceId TraceId { get; }
System\Diagnostics\ActivityCreationOptions.cs (4)
129public ActivityTraceId TraceId 135Func<ActivityTraceId>? traceIdGenerator = Activity.TraceIdGenerator; 136ActivityTraceId id = traceIdGenerator == null ? ActivityTraceId.CreateRandom() : traceIdGenerator();
System\Diagnostics\DsesSamplerBuilder.cs (1)
39public static ActivitySamplingResult ParentRatioSampler(long idUpperBound, in ActivityContext parentContext, ActivityTraceId traceId)