19 references to ActivityTraceFlags
Aspire.Microsoft.Data.SqlClient (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (2)
84activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded; 92activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (2)
84activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded; 92activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
1004activity.ActivityTraceFlags = ActivityTraceFlags.Recorded;
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
83activityTraceFlags = activity.ActivityTraceFlags == ActivityTraceFlags.None
Stress.ApiService (2)
ProducerConsumer.cs (1)
35links.Add(new ActivityLink(new ActivityContext(item.Producer.TraceId, item.Producer.SpanId, ActivityTraceFlags.None)));
TraceCreator.cs (1)
136ActivityTraceFlags.None);
System.Diagnostics.DiagnosticSource (11)
System\Diagnostics\Activity.cs (7)
709public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags = ActivityTraceFlags.None) 945public bool Recorded { get => (ActivityTraceFlags & ActivityTraceFlags.Recorded) != 0; } 956public ActivityTraceFlags ActivityTraceFlags 964return (ActivityTraceFlags)((~ActivityTraceFlagsIsSet) & _w3CIdFlags); 1103(ActivityTraceFlags)ActivityTraceId.HexByteFromChars(traceParent[53], traceParent[54]), 1245activity.ActivityTraceFlags |= ActivityTraceFlags.Recorded;
System\Diagnostics\ActivityContext.cs (2)
26public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string? traceState = null, bool isRemote = false) 48public ActivityTraceFlags TraceFlags { get; }
System\Diagnostics\ActivityCreationOptions.cs (1)
139Unsafe.AsRef(in _context) = new ActivityContext(id, default, ActivityTraceFlags.None);
System\Diagnostics\DsesSamplerBuilder.cs (1)
43return parentContext.TraceFlags.HasFlag(ActivityTraceFlags.Recorded)