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